-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error on running on my Jupyter notebook #76
Comments
I have the same error, with |
me too |
1 similar comment
me too |
I am getting something similar but get a warning first: Then I get: AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' |
Error message I got: File ~\Anaconda3\lib\site-packages\torch\nn\modules\module.py:1130, in Module._call_impl(self, *input, **kwargs) File ~\Anaconda3\lib\site-packages\dall_e\decoder.py:94, in Decoder.forward(self, x) File ~\Anaconda3\lib\site-packages\torch\nn\modules\module.py:1130, in Module._call_impl(self, *input, **kwargs) File ~\Anaconda3\lib\site-packages\torch\nn\modules\container.py:139, in Sequential.forward(self, input) File ~\Anaconda3\lib\site-packages\torch\nn\modules\module.py:1130, in Module._call_impl(self, *input, **kwargs) File ~\Anaconda3\lib\site-packages\torch\nn\modules\container.py:139, in Sequential.forward(self, input) File ~\Anaconda3\lib\site-packages\torch\nn\modules\module.py:1130, in Module._call_impl(self, *input, **kwargs) File ~\Anaconda3\lib\site-packages\torch\nn\modules\upsampling.py:154, in Upsample.forward(self, input) File ~\Anaconda3\lib\site-packages\torch\nn\modules\module.py:1207, in Module.getattr(self, name) AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' |
ultralytics/yolov5#6948 (comment) Find
Commenting out this optional parameter was a quick fix for me but I think that pinning versions to this:
is what's really appropriate. I'll make a PR with the versions pinned after testing. |
The error is related to a change in the torch Upscale class from 1.10 to 1.11. It appears that 'old' Upscale objects are saved within the model after this line of code:
and it's running fine with torch 1.12.1! |
When I tried to run
the example notebook
, it returned an error.This error was specifically on the
x_stats = dec(z).float()
line.The text was updated successfully, but these errors were encountered: