question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AssertionError: CUDA must be available in order to use Deep Daze

See original GitHub issue
Traceback (most recent call last):
  File "reeeeeeeeeeeeeeeeeeeeeeeeeee.py", line 1, in <module>
    from big_sleep import Imagine
  File "C:\Users\FlashlightBulbton\anaconda3\envs\bigsleep\lib\site-packages\big_sleep\__init__.py", line 1, in <module>
    from big_sleep.big_sleep import BigSleep, Imagine
  File "C:\Users\FlashlightBulbton\anaconda3\envs\bigsleep\lib\site-packages\big_sleep\big_sleep.py", line 22, in <module>
    assert torch.cuda.is_available(), 'CUDA must be available in order to use Deep Daze'
AssertionError: CUDA must be available in order to use Deep Daze

(bigsleep) c:\frart>nvidia-smi
Thu Feb 25 09:57:47 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 451.48       Driver Version: 451.48       CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 166... WDDM  | 00000000:08:00.0  On |                  N/A |
| 40%   50C    P2    35W / 125W |   2038MiB /  6144MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+

literally every other ai i use (i use a lot of them, stylegan, wav2lip, etc etc) works fine on this pc (theyre all in different conda environments)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
galaxyentity904commented, Jul 9, 2021

Fix is actually quite easy

Important: big sleep only works on Nvidia gpus

So your all getting a CUDA error saying CUDA isn’t available,

Simply install CUDA https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

Do this in shell, not the python environment

0reactions
justinkuhncommented, Jul 9, 2021

I get the same errror

(voice-clone) C:\Users\jtkuh\code\python\bigsleep>python start.py Traceback (most recent call last): File “start.py”, line 1, in <module> from big_sleep import Imagine File “C:\Users\jtkuh.conda\envs\voice-clone\lib\site-packages\big_sleep_init_.py”, line 1, in <module> from big_sleep.big_sleep import BigSleep, Imagine File “C:\Users\jtkuh.conda\envs\voice-clone\lib\site-packages\big_sleep\big_sleep.py”, line 26, in <module> assert torch.cuda.is_available(), ‘CUDA must be available in order to use Big Sleep’ AssertionError: CUDA must be available in order to use Big Sleep

(voice-clone) C:\Users\jtkuh\code\python\bigsleep>nvidia-smi Thu Jul 8 22:32:01 2021
±----------------------------------------------------------------------------+ | NVIDIA-SMI 466.27 Driver Version: 466.27 CUDA Version: 11.3 | |-------------------------------±---------------------±---------------------+ | GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce … WDDM | 00000000:01:00.0 Off | N/A | | N/A 43C P8 N/A / N/A | 102MiB / 2048MiB | 0% Default | | | | N/A | ±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 12552 C+G …ser\Application\brave.exe N/A | ±----------------------------------------------------------------------------+

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cuda error CUDA must be available in order to use Deep Daze
I am new to using python and PyTorch, I am trying to make some arts using Deep Daze and Big Sleep however, and...
Read more >
CUDA must be available in order to use Deep Daze* And here I
AssertionError : CUDA must be available in order to use Deep Daze. And here I was hoping to generate extensive phallic imagery on...
Read more >
Help PLEASE : r/deepdaze - Reddit
assert torch.cuda.is_available(), 'CUDA must be available in order to use Deep Daze'. AssertionError: CUDA must be available in order to use ...
Read more >
Deep Daze download | SourceForge.net
Simple command-line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network). In true deep ...
Read more >
Deep Daze Fourier Text-to-Image - Softology's Blog
Started using Visions of Chaos about a week ago and I'm having heaps of fun with all the machine learning options available from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found