Open JamesBird02 opened 8 months ago
mee too
If you are trying to use segment/predict.py you need to change line 187: 'if 'Detect' not in module_type:' to 'if 'Detect' not in module_type and 'Segment' not in module_type:' That makes it work for me.
I have executed the following command:
!python detect_dual.py --source /content/example_mush.jpeg --weights runs/train/yolov9-c3/weights/best_idp.pt --conf-thres 0.75 --iou-thres 0.6 --device 0 --visualize --hide-labels --hide-conf
and encountered this error:
Saving runs/detect/exp15/example_mush/stage22_RepNCSPELAN4_features.png... (32/512) Traceback (most recent call last): File "/content/yolov9/utils/plots.py", line 188, in feature_visualization batch, channels, height, width = x.shape # batch, channels, height, width AttributeError: 'tuple' object has no attribute 'shape'
This error only occurs when --visualize is added to the command, making me believe it has something to do with that.
Thanks!