Error in custom module #22260
-
Hi, I am integrating Timm backbones with the current framework. However I am getting an error while using the pre built heads with it during inference. Specifically it is about the channel mismatch between input to head and expected input. Attached are the erro logs as well the custom module definitions. Thank you! Error log
Debug statements from parse_model printing "ch"
Config Yaml
parse_modelThe main change is in parsing of Index module and the addition of branch to parse Timm one along with the debug statements
Custom Timm module
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
👋 Hello @someuser2026, thank you for your interest in Ultralytics 🚀! This is an automated response to help you get unstuck quickly — an Ultralytics engineer will also assist you here soon. 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. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. Join the Ultralytics community where it suits you best. For real-time chat, head to Discord 🎧. Prefer in-depth discussions? Check out Discourse. Or dive into threads on our Subreddit to share knowledge with the community. UpgradeUpgrade to the latest pip install -U ultralytics EnvironmentsYOLO may be run in any of the following 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. |
Beta Was this translation helpful? Give feedback.
The timm module was storing info about all the channels in the self.channels list instead of for only the ones that are specified in the out_indices.