-
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
Jupyter Notebook with Preprocess error #53
Comments
'Upsample' object has no attribute 'recompute_scale_factor' |
Hi, I experience the same issue:
Versions:
As yo can see in the last part of the first output, I tried installing torch <=1.10.0 (1.9.1) manually first before installing DALL-E, but this got automatically uninstalled and replaced with the latest version of torch (1.11.0). So, how should I go about this? Thanks! |
hi, i am happy to answer this question:
if someone use 'pip install dall-e',it means ,it installs a lot of package,some of it we need,some of it we dont need.
as you said,you are not happy about that: 'pip install dall-e' make your torch edition from 1.9.1 to 1.11.0.
the right way as followed:
1.make sure it is in a current environment(if you use anaconda)
2.use "pip uninstall torch" to uninstall current version of torch
3.open you chrome, turn to 'https://pytorch.org/' ,its pytorch's official website
4.choose right version
5.copy "run this command" 's content
6.open terminal,and ctrl+c ,ctrl+v ,and enter
7.that's all.
…------------------ 原始邮件 ------------------
发件人: "openai/DALL-E" ***@***.***>;
发送时间: 2022年4月6日(星期三) 下午4:58
***@***.***>;
***@***.***>;
主题: Re: [openai/DALL-E] Jupyter Notebook with Preprocess error (Issue #53)
Hi, I experience the same issue:
pip install DALL-E
Requirement already satisfied: DALL-E in c:\program files\python39\lib\site-packages (0.1)
Requirement already satisfied: Pillow in c:\program files\python39\lib\site-packages (from DALL-E) (9.1.0)
Collecting torchvision
Using cached torchvision-0.12.0-cp39-cp39-win_amd64.whl (1.0 MB)
Requirement already satisfied: pytest in c:\program files\python39\lib\site-packages (from DALL-E) (7.1.1)
Requirement already satisfied: torch in c:\program files\python39\lib\site-packages (from DALL-E) (1.9.1)
Requirement already satisfied: numpy in c:\program files\python39\lib\site-packages (from DALL-E) (1.20.3)
Requirement already satisfied: mypy in c:\program files\python39\lib\site-packages (from DALL-E) (0.942)
Requirement already satisfied: blobfile in c:\program files\python39\lib\site-packages (from DALL-E) (1.2.8)
Requirement already satisfied: requests in c:\program files\python39\lib\site-packages (from DALL-E) (2.27.1)
Requirement already satisfied: xmltodict~=0.12.0 in c:\program files\python39\lib\site-packages (from blobfile->DALL-E) (0.12.0)
Requirement already satisfied: pycryptodomex~=3.8 in c:\program files\python39\lib\site-packages (from blobfile->DALL-E) (3.14.1)
Requirement already satisfied: urllib3~=1.25 in c:\program files\python39\lib\site-packages (from blobfile->DALL-E) (1.26.9)
Requirement already satisfied: filelock~=3.0 in c:\program files\python39\lib\site-packages (from blobfile->DALL-E) (3.6.0)
Requirement already satisfied: mypy-extensions>=0.4.3 in c:\program files\python39\lib\site-packages (from mypy->DALL-E) (0.4.3)
Requirement already satisfied: typing-extensions>=3.10 in c:\program files\python39\lib\site-packages (from mypy->DALL-E) (4.1.1)
Requirement already satisfied: tomli>=1.1.0 in c:\program files\python39\lib\site-packages (from mypy->DALL-E) (2.0.1)
Requirement already satisfied: packaging in c:\users\tobia\appdata\roaming\python\python39\site-packages (from pytest->DALL-E) (21.3)
Requirement already satisfied: py>=1.8.2 in c:\program files\python39\lib\site-packages (from pytest->DALL-E) (1.11.0)
Requirement already satisfied: colorama in c:\users\tobia\appdata\roaming\python\python39\site-packages (from pytest->DALL-E) (0.4.4)
Requirement already satisfied: atomicwrites>=1.0 in c:\program files\python39\lib\site-packages (from pytest->DALL-E) (1.4.0)
Requirement already satisfied: pluggy<2.0,>=0.12 in c:\program files\python39\lib\site-packages (from pytest->DALL-E) (1.0.0)
Requirement already satisfied: attrs>=19.2.0 in c:\program files\python39\lib\site-packages (from pytest->DALL-E) (21.4.0)
Requirement already satisfied: iniconfig in c:\program files\python39\lib\site-packages (from pytest->DALL-E) (1.1.1)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\program files\python39\lib\site-packages (from requests->DALL-E) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in c:\program files\python39\lib\site-packages (from requests->DALL-E) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\program files\python39\lib\site-packages (from requests->DALL-E) (2021.10.8)
Collecting torch
Using cached torch-1.11.0-cp39-cp39-win_amd64.whl (157.9 MB)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\tobia\appdata\roaming\python\python39\site-packages (from packaging->pytest->DALL-E) (3.0.7)
Installing collected packages: torch, torchvision
Attempting uninstall: torch
Found existing installation: torch 1.9.1
Uninstalling torch-1.9.1:
Successfully uninstalled torch-1.9.1
Successfully installed torch-1.11.0 torchvision-0.12.0
Versions:
pip --version
pip 22.0.4 from C:\Program Files\Python39\lib\site-packages\pip (python 3.9)
py --version
Python 3.9.12
As yo can see in the last part of the first output, I tried installing torch <=1.10.0 (1.9.1) manually first before installing DALL-E, but this got automatically uninstalled and replaced with the latest version of torch (1.11.0). So, how should I go about this?
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hi @mooooooood
The last command I got from the site https://pytorch.org/get-started/previous-versions/ . |
i am very happy to talk about the [cuda,navidia]:
1.as for the cuda, because my computer ‘s Graphics card is mx450.(not a amd graphics card)
2.oftenly,specific graphics card correspond specific cuda version
3.why we use graphics card?because ,if we only use cpu to calc the code,it is wasty. graphics was born to calc the (Inefficiency,of large number thing)
4.how to check my computer cuda version?
5.so that explain people buy the most expensive ,the latest Graphics card,cause they want to accelerate the calc.
6.if someone can't afford to a 3090ti(most people cant afford) or something,that's all right ,we try to use the convinent version of (cuda:11.1 and mx450),in fact it is enough to use.
7.so when we want to download the pytorch,better to check your computer (amd or navidia),your economic strength,your cuda, to download convinent version.
8.i suggest you submmit your computer hardware to pytorch offical website and get suggest to download the spec version
9.that's all
…------------------ 原始邮件 ------------------
发件人: "openai/DALL-E" ***@***.***>;
发送时间: 2022年4月6日(星期三) 晚上7:38
***@***.***>;
***@***.******@***.***>;
主题: Re: [openai/DALL-E] Jupyter Notebook with Preprocess error (Issue #53)
Hi @mooooooood
Thanks a lot! This did indeed solve the issue for me.
I did the following:
pip install DALL-E
pip uninstall torch
pip install torch==1.10.0+cpu torchvision==0.11.0+cpu torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html
The last command I got from the site https://pytorch.org/get-started/previous-versions/ .
Before I used the command 'pip install torch==1.9.3' but this is not sufficient as it stands. Use the command above or adjust it to your needs (i.e. if you use cuda etc.)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I have the same issue. |
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! |
Hello,
A long while back I cloned the Dall-E repo and watched the penguin appear -> yay! :)
So now I did it again, I have a new GPU so why not. Figured I'd run the default CPU first and then flip to CUDA.
This time I got unanticipated errors. (I originally had a path problem caused by two versions of python installed, uninstalled the old one, pip install numpy and torch and good to go) I've attached multiple screenshots to help provide greater context. I feel like this is still somehow related to my original path issue.. or possibly i'm missing a site-package that I can't think of....
Thank you for your time and assistance.
# Do not call functions when jit is used
That's thrown multiple times at the last run and finishes with the below as a finale
`
C:\Python310\lib\site-packages\torch\nn\modules\upsampling.py in forward(self, input)
152 def forward(self, input: Tensor) -> Tensor:
153 return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners,
--> 154 recompute_scale_factor=self.recompute_scale_factor)
155
156 def extra_repr(self) -> str:
C:\Python310\lib\site-packages\torch\nn\modules\module.py in getattr(self, name)
1183 if name in modules:
1184 return modules[name]
-> 1185 raise AttributeError("'{}' object has no attribute '{}'".format(
1186 type(self).name, name))
1187
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
`
The text was updated successfully, but these errors were encountered: