-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Search before asking
- I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
custom model traing,Classes = 2,when export model file with --train report an error, if not with --train no error
Traceback (most recent call last):
File "export.py", line 595, in <module>
main(opt)
File "export.py", line 590, in main
run(**vars(opt))
File "/root/anaconda3/envs/yolov5/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "export.py", line 499, in run
shape = tuple((y[0] if isinstance(y, tuple) else y).shape) # model output shape
AttributeError: 'list' object has no attribute 'shape'
Additional
No response
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested