Open zerolovesea opened 4 weeks ago
π Hello @zerolovesea, thank you for raising an issue about Ultralytics HUB π! Please visit our HUB Docs to learn more:
If this is a π Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix.
If this is a β Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response.
We try to respond to all issues as promptly as possible. Thank you for your patience!
Hey there! It looks like the model you're trying to deploy has class labels that don't match with the labels defined in your data configuration file referred to as data/trilights.yaml
. The KeyError: 634
suggests that the output tensor is attempting to access a class index 634
, which is not present in your label set in the YAML file. π§
To resolve this issue, please ensure that the names
list in your YAML configuration file includes all needed class indices that your model might output. This typically includes every class from 0
to n-1
if you have n
classes. Double-check this mapping and update your YAML file accordingly!
Hope this helps! If the problem persists, reviewing the exact contents of your trilights.yaml
and comparing them against your modelβs class labels should provide further insight.
Search before asking
Question
I'm trying to use detect.py from yolov5 offical github with the weight file trained by Hub.
I'm not sure if i have to use the ultralystic.yolo instead of detect.py to deploy this model?
It rasie an error like below, i printed out the detection output after scale_box function:
Additional
No response