lucidrains / deep-daze

Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network). Technique was originally created by https://twitter.com/advadnoun
MIT License
4.38k stars 327 forks source link

Getting error of jit when installing cuda for python #193

Open DuckersMcQuack opened 2 years ago

DuckersMcQuack commented 2 years ago

As it first complained about no cuda, so i added cuda withg this command:

pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html

But that caused this error:

Microsoft Windows [Version 10.0.19043.1415] (c) Microsoft Corporation. All rights reserved.

C:\Users\Duckers>appdata'locaprograms\python\puthon39 The system cannot find the path specified.

C:\Users\Duckers>appdatalocaprograms\python\puthon39 The system cannot find the path specified.

C:\Users\Duckers>appdata\locaprograms\python\puthon39 The system cannot find the path specified.

C:\Users\Duckers>appdata\locaprograms\python\python39 The system cannot find the path specified.

C:\Users\Duckers>cd appdata\locaprograms\python\python39 The system cannot find the path specified.

C:\Users\Duckers>cd appdata\local\programs\python\python39

C:\Users\Duckers\AppData\Local\Programs\Python\Python39> imagine "a duck" Setting jit to False because torch version is not 1.7.1. Traceback (most recent call last): File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\Scripts\imagine.exe__main.py", line 7, in File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\deep_daze\cli.py", line 151, in main fire.Fire(train) File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 466, in _Fire component, remaining_args = _CallAndUpdateTrace( File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\deep_daze\cli.py", line 99, in train imagine = Imagine( File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\deep_daze\deep_daze.py", line 354, in init model = DeepDaze( File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\deep_daze\deep_daze.py", line 169, in init self.model = SirenWrapper( File "C:\Users\Duckers\AppData\Local\Programs\Python\Python39\lib\site-packages\siren_pytorch\siren_pytorch.py", line 137, in init__ mgrid = torch.stack(torch.meshgrid(*tensors, indexing = 'ij'), dim=-1) TypeError: meshgrid() got an unexpected keyword argument 'indexing'