Skip to content

AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
medioman22 opened this issue Sep 23, 2022 · 0 comments

Comments

@medioman22
Copy link

I'm getting this error
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

when running the first inference example code

python annotate.py yolov5-deepsparse/yolov5s-sgd/weights/best.pt \ --source data/pexels-cottonbro-8717592.mp4 \ --engine torch \ --image-shape 416 416 \ --device cpu \ --conf-thres 0.7

seems related to ultralytics/yolov5#6948 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant