jina-ai / discoart

🪩 Create Disco Diffusion artworks in one line
Other
3.84k stars 247 forks source link

create() error #170

Closed Lexa070301 closed 1 year ago

Lexa070301 commented 1 year ago

Traceback (most recent call last): File "/home/alexey/Desktop/images.py", line 3, in da = create() File "/home/alexey/.local/lib/python3.10/site-packages/discoart/create.py", line 191, in create from .helper import ( File "/home/alexey/.local/lib/python3.10/site-packages/discoart/helper.py", line 21, in from clip.simple_tokenizer import SimpleTokenizer, whitespace_clean, basic_clean File "/home/alexey/.local/lib/python3.10/site-packages/clip/init.py", line 1, in from .clip import * File "/home/alexey/.local/lib/python3.10/site-packages/clip/clip.py", line 10, in from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize File "/home/alexey/.local/lib/python3.10/site-packages/torchvision/init.py", line 5, in from torchvision import datasets File "/home/alexey/.local/lib/python3.10/site-packages/torchvision/datasets/init.py", line 1, in from ._optical_flow import KittiFlow, Sintel, FlyingChairs, FlyingThings3D, HD1K File "/home/alexey/.local/lib/python3.10/site-packages/torchvision/datasets/_optical_flow.py", line 12, in from ..io.image import _read_png_16 File "/home/alexey/.local/lib/python3.10/site-packages/torchvision/io/init.py", line 5, in from ..utils import _log_api_usage_once File "/home/alexey/.local/lib/python3.10/site-packages/torchvision/utils.py", line 21, in @torch.no_grad() AttributeError: module 'torch' has no attribute 'no_grad'

Google suggested that I need to update the touch module, but this did not help

adamthahir commented 1 year ago

Could you provide your torch module version and installed cuda version?

For reference:

Torch: python -c "import torch;print(torch.__version__)"

cuda: nvcc --version

hanxiao commented 1 year ago

pytorch issue, pytorch version too old, out of scope of discoart