-
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
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' #54
Comments
Just found out a quick fix for this Assuming you are working inside a virtual environment with python3.8 installed
Alternatively, downgrading Pytorch back to <= 1.10.0 would also do the trick. Check out #53 (comment) for more details. |
or see #53 (comment) |
You need to select the appropriate pytorch version number according to your own graphics card driver and CUDA version,that's all
…------------------ 原始邮件 ------------------
发件人: "openai/DALL-E" ***@***.***>;
发送时间: 2022年4月8日(星期五) 晚上7:29
***@***.***>;
***@***.***>;
主题: [openai/DALL-E] AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' (Issue #54)
When i install and ran the sample i am getting this error - AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
python 3.8
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Google Colab default environment throws that error as of May 2022 |
This helps, ty |
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 install and ran the sample i am getting this error - AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
python 3.8
The text was updated successfully, but these errors were encountered: