Getting KeyError when trying to build my custom yolov5 architecture #20667
Replies: 2 comments 2 replies
-
|
👋 Hello @SaiSanthosh1508, thank you for reaching out and sharing your detailed custom YOLOv5 architecture code with Ultralytics! 🚀 We appreciate your engagement and creativity in extending the model. For users new to custom blocks or model modifications, please visit our Docs for foundational Python and CLI examples, as well as answers to many common questions. 🐛 If this is a bug report regarding a KeyError when loading your YAML-defined model, please provide a minimum reproducible example (MRE). This helps us debug your issue more efficiently. If you’re seeking help with custom training or model definition, please include:
Connect with the Ultralytics community in the way that fits you best:
UpgradeTo ensure your issue is not due to an outdated environment, please upgrade to the latest pip install -U ultralyticsEnvironmentsYOLO can be run in any of these up-to-date, verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify 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 🤖. An Ultralytics engineer will join the discussion soon to assist you further! |
Beta Was this translation helpful? Give feedback.
-
|
You can use this to define and use custom modules directly in YAML. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I defined few custom blocks and integrated them into the yolo model , but when i try to load the model from yaml file im getting thekey error
custom_blocks.py
yolo.py
I've looked into similar issues but couldnt understand the reason for the issue. Please help me solve this
Beta Was this translation helpful? Give feedback.
All reactions