-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implementation of LDConv #18156
Comments
👋 Hello @ChandraPrakash-123, thank you for your interest in Ultralytics 🚀! We recommend a visit to the Docs for new users, where you can find many Python and CLI usage examples, and where many of the most common questions may already be answered. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. This would include the exact code changes you’ve made to integrate If this is a custom training ❓ Question, please provide as much detail as possible, including datasets used, training configurations, logs, and the exact modifications you've made to files like The error you're encountering suggests a export CUDA_LAUNCH_BLOCKING=1 Additionally, please ensure you are running the latest version of the pip install -U ultralytics EnvironmentsMake sure your environment is up to date. YOLO models can be run seamlessly in any of these verified setups:
Join the Ultralytics community where it suits you best! For quick answers, hop on Discord 🎧. Prefer in-depth discussions? Check out Discourse. You can also explore our Subreddit for community discussions. StatusIf this badge is green, all Ultralytics CI tests are currently passing. These CI tests verify the correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. This is an automated response to assist you quickly 🔄. An Ultralytics engineer will follow up to provide more detailed help soon! 😊 |
I have also tried with yolo11 and facing same issue as i told you . currently i am running this on cityscape dataset before any change in code i have already run that code and its run properly . now i want to do custom training with some change as i share my custom.yaml file to you. exact code of LDConv you can get from here LDConv |
You can run with device="cpu" and it will show you the actual error. |
getting same error while running this - device = torch.device('cpu') Load a modelmodel = YOLO("yolov8_custom.yaml") Train the modeltrain_results = model.train( error- |
You should pass |
Search before asking
Question
I try to implement the LDConv as CV-ZhangXin provides code on github and its implemented already on yolov8 according to that.When I applied after adding LDConv in conv.py and rendering nn.task.py getting error after training that is
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with
TORCH_USE_CUDA_DSA
to enable device-side assertions.what is reason to get this error. i am using Ultralytics YOLOv8.2.41 🚀 Python-3.9.0 torch-2.4.0+cu121 CUDA:0 (NVIDIA GeForce RTX 4090, 24217MiB)
Additional
Ultralytics YOLO 🚀, GPL-3.0 license
Parameters
nc: 80 # number of classes
depth_multiple: 0.33 # scales module repeats
width_multiple: 0.25 # scales convolution channels
YOLOv8.0n backbone
backbone:
[from, repeats, module, args]
YOLOv8.0n head
head:
[-1, 1, nn.Upsample, [None, 2, 'nearest']]
[[-1, 6], 1, Concat, [1]] # cat backbone P4
[-1, 3, C2f, [512]] # 12
[-1, 1, nn.Upsample, [None, 2, 'nearest']]
[[-1, 4], 1, Concat, [1]] # cat backbone P3
[-1, 3, C2f, [256]] # 15 (P3/8-small)
[-1, 1, LDConv, [256, 6, 2]]
[[-1, 12], 1, Concat, [1]] # cat head P4
[-1, 3, C2f, [512]] # 18 (P4/16-medium)
[-1, 1, LDConv, [512, 6, 2]]
[[-1, 9], 1, Concat, [1]] # cat head P5
[-1, 3, C2f, [1024]] # 21 (P5/32-large)
[[15, 18, 21], 1, Detect, [nc]] # Detect(P3, P4, P5)
The text was updated successfully, but these errors were encountered: