Getting this error immediately after running python unstablefusion.py, gui is still loaded:
/home/user/anaconda3/lib/python3.9/site-packages/torch/cuda/__init__.py:88: UserWarning: CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at /opt/conda/conda-bld/pytorch_1665040357079/work/c10/cuda/CUDAFunctions.cpp:109.)
return torch._C._cuda_getDeviceCount() > 0
/home/user/anaconda3/lib/python3.9/site-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.3
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
and this one after hitting "Generate":
Fetching 16 files: 100%|███████████████████████████████████| 16/16 [00:00<00:00, 79512.87it/s]
Traceback (most recent call last):
File "/home/user/Developer/UnstableFusion/unstablefusion.py", line 856, in handle_generate_button
image = self.get_handler().generate(prompt,
File "/home/user/Developer/UnstableFusion/unstablefusion.py", line 436, in get_handler
return self.stable_diffusion_manager.get_handler()
File "/home/user/Developer/UnstableFusion/unstablefusion.py", line 318, in get_handler
return self.get_local_handler(self.get_huggingface_token())
File "/home/user/Developer/UnstableFusion/unstablefusion.py", line 301, in get_local_handler
self.cached_local_handler = StableDiffusionHandler(token)
File "/home/user/Developer/UnstableFusion/diffusionserver.py", line 27, in __init__
self.text2img = StableDiffusionPipeline.from_pretrained(
File "/home/user/anaconda3/lib/python3.9/site-packages/diffusers/pipeline_utils.py", line 179, in to
module.to(torch_device)
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 987, in to
return self._apply(convert)
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 639, in _apply
module._apply(fn)
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 639, in _apply
module._apply(fn)
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 639, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 662, in _apply
param_applied = fn(param)
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 985, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
File "/home/user/anaconda3/lib/python3.9/site-packages/torch/cuda/__init__.py", line 227, in _lazy_init
torch._C._cuda_init()
RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.
Getting this error immediately after running
python unstablefusion.py
, gui is still loaded:and this one after hitting "Generate":
nvidia-smi
output:+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 2358 G /usr/lib/xorg/Xorg 3038MiB | | 0 N/A N/A 2714 G /usr/bin/gnome-shell 442MiB | | 0 N/A N/A 177728 G ...187800556795193677,131072 924MiB | | 0 N/A N/A 177762 G ...AAAAAAAAA= --shared-files 125MiB | | 0 N/A N/A 224062 G ...RendererForSitePerProcess 228MiB | +-----------------------------------------------------------------------------+
Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
anyio 3.5.0 py310h06a4308_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py310h7f8727e_0
asttokens 2.0.5 pyhd3eb1b0_0
attrs 21.4.0 pyhd3eb1b0_0
babel 2.9.1 pyhd3eb1b0_0
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.11.1 py310h06a4308_0
blas 1.0 mkl
bleach 4.1.0 pyhd3eb1b0_0
brotlipy 0.7.0 py310h7f8727e_1002
bzip2 1.0.8 h7b6447c_0
ca-certificates 2022.07.19 h06a4308_0
certifi 2022.9.24 py310h06a4308_0
cffi 1.15.1 py310h74dc2b5_0
charset-normalizer 2.0.4 pyhd3eb1b0_0
cryptography 37.0.1 py310h9ce1e76_0
cuda 11.7.1 0 nvidia cuda-cccl 11.7.91 0 nvidia cuda-command-line-tools 11.7.1 0 nvidia cuda-compiler 11.7.1 0 nvidia cuda-cudart 11.7.99 0 nvidia cuda-cudart-dev 11.7.99 0 nvidia cuda-cuobjdump 11.7.91 0 nvidia cuda-cupti 11.7.101 0 nvidia cuda-cuxxfilt 11.7.91 0 nvidia cuda-demo-suite 11.8.86 0 nvidia cuda-documentation 11.8.86 0 nvidia cuda-driver-dev 11.7.99 0 nvidia cuda-gdb 11.8.86 0 nvidia cuda-libraries 11.7.1 0 nvidia cuda-libraries-dev 11.7.1 0 nvidia cuda-memcheck 11.8.86 0 nvidia cuda-nsight 11.8.86 0 nvidia cuda-nsight-compute 11.8.0 0 nvidia cuda-nvcc 11.7.99 0 nvidia cuda-nvdisasm 11.8.86 0 nvidia cuda-nvml-dev 11.7.91 0 nvidia cuda-nvprof 11.8.87 0 nvidia cuda-nvprune 11.7.91 0 nvidia cuda-nvrtc 11.7.99 0 nvidia cuda-nvrtc-dev 11.7.99 0 nvidia cuda-nvtx 11.7.91 0 nvidia cuda-nvvp 11.8.87 0 nvidia cuda-runtime 11.7.1 0 nvidia cuda-sanitizer-api 11.8.86 0 nvidia cuda-toolkit 11.7.1 0 nvidia cuda-tools 11.7.1 0 nvidia cuda-visual-tools 11.7.1 0 nvidia dbus 1.13.18 hb2f20db_0
debugpy 1.5.1 py310h295c915_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
entrypoints 0.4 py310h06a4308_0
executing 0.8.3 pyhd3eb1b0_0
expat 2.4.9 h6a678d5_0
ffmpeg 4.2.2 h20bf706_0
fontconfig 2.13.1 h6c09931_0
freetype 2.11.0 h70c0345_0
gds-tools 1.4.0.31 0 nvidia giflib 5.2.1 h7b6447c_0
glib 2.69.1 h4ff587b_1
gmp 6.2.1 h295c915_3
gnutls 3.6.15 he1e5248_0
gst-plugins-base 1.14.0 h8213a91_2
gstreamer 1.14.0 h28cd5cc_2
icu 58.2 he6710b0_3
idna 3.3 pyhd3eb1b0_0
intel-openmp 2021.4.0 h06a4308_3561
ipykernel 6.15.2 py310h06a4308_0
ipython 8.4.0 py310h06a4308_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.6.5 pyhd3eb1b0_1
jedi 0.18.1 py310h06a4308_1
jinja2 3.0.3 pyhd3eb1b0_0
jpeg 9e h7f8727e_0
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.16.0 py310h06a4308_0
jupyter 1.0.0 py310h06a4308_8
jupyter_client 7.3.5 py310h06a4308_0
jupyter_console 6.4.3 pyhd3eb1b0_0
jupyter_core 4.11.1 py310h06a4308_0
jupyter_server 1.18.1 py310h06a4308_0
jupyterlab 3.4.4 py310h06a4308_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.15.2 py310h06a4308_0
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1
krb5 1.19.2 hac12032_0
lame 3.100 h7b6447c_0
lcms2 2.12 h3be6417_0
ld_impl_linux-64 2.38 h1181459_1
lerc 3.0 h295c915_0
libclang 10.0.1 default_hb85057a_2
libcublas 11.11.3.6 0 nvidia libcublas-dev 11.11.3.6 0 nvidia libcufft 10.9.0.58 0 nvidia libcufft-dev 10.9.0.58 0 nvidia libcufile 1.4.0.31 0 nvidia libcufile-dev 1.4.0.31 0 nvidia libcurand 10.3.0.86 0 nvidia libcurand-dev 10.3.0.86 0 nvidia libcusolver 11.4.1.48 0 nvidia libcusolver-dev 11.4.1.48 0 nvidia libcusparse 11.7.5.86 0 nvidia libcusparse-dev 11.7.5.86 0 nvidia libdeflate 1.8 h7f8727e_5
libedit 3.1.20210910 h7f8727e_0
libevent 2.1.12 h8f2d780_0
libffi 3.3 he6710b0_2
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libidn2 2.3.2 h7f8727e_0
libllvm10 10.0.1 hbcb73fb_5
libnpp 11.8.0.86 0 nvidia libnpp-dev 11.8.0.86 0 nvidia libnvjpeg 11.9.0.86 0 nvidia libnvjpeg-dev 11.9.0.86 0 nvidia libopus 1.3.1 h7b6447c_0
libpng 1.6.37 hbc83047_0
libpq 12.9 h16c4e8d_3
libsodium 1.0.18 h7b6447c_0
libstdcxx-ng 11.2.0 h1234567_1
libtasn1 4.16.0 h27cfd23_0
libtiff 4.4.0 hecacb30_0
libunistring 0.9.10 h27cfd23_0
libuuid 1.0.3 h7f8727e_2
libvpx 1.7.0 h439df22_0
libwebp 1.2.2 h55f646e_0
libwebp-base 1.2.2 h7f8727e_0
libxcb 1.15 h7f8727e_0
libxkbcommon 1.0.1 hfa300c1_0
libxml2 2.9.14 h74e7548_0
libxslt 1.1.35 h4e12654_0
lz4-c 1.9.3 h295c915_1
markupsafe 2.1.1 py310h7f8727e_0
matplotlib-inline 0.1.6 py310h06a4308_0
mistune 0.8.4 py310h7f8727e_1000
mkl 2021.4.0 h06a4308_640
mkl-service 2.4.0 py310h7f8727e_0
mkl_fft 1.3.1 py310hd6ae3a3_0
mkl_random 1.2.2 py310h00e6091_0
nbclassic 0.3.5 pyhd3eb1b0_0
nbclient 0.5.13 py310h06a4308_0
nbconvert 6.4.4 py310h06a4308_0
nbformat 5.5.0 py310h06a4308_0
ncurses 6.3 h5eee18b_3
nest-asyncio 1.5.5 py310h06a4308_0
nettle 3.7.3 hbbd107a_1
notebook 6.4.12 py310h06a4308_0
nsight-compute 2022.3.0.22 0 nvidia nspr 4.33 h295c915_0
nss 3.74 h0370c37_0
numpy 1.23.1 py310h1794996_0
numpy-base 1.23.1 py310hcba007f_0
openh264 2.1.1 h4ff587b_0
openssl 1.1.1q h7f8727e_0
packaging 21.3 pyhd3eb1b0_0
pandocfilters 1.5.0 pyhd3eb1b0_0
parso 0.8.3 pyhd3eb1b0_0
pcre 8.45 h295c915_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 9.2.0 py310hace64e9_1
pip 22.2.2 py310h06a4308_0
ply 3.11 py310h06a4308_0
prometheus_client 0.14.1 py310h06a4308_0
prompt-toolkit 3.0.20 pyhd3eb1b0_0
prompt_toolkit 3.0.20 hd3eb1b0_0
psutil 5.9.0 py310h5eee18b_0
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
pycparser 2.21 pyhd3eb1b0_0
pygments 2.11.2 pyhd3eb1b0_0
pyopenssl 22.0.0 pyhd3eb1b0_0
pyparsing 3.0.9 py310h06a4308_0
pyqt 5.15.7 py310h6a678d5_1
pyqt5-sip 12.11.0 pypi_0 pypi pyrsistent 0.18.0 py310h7f8727e_0
pysocks 1.7.1 py310h06a4308_0
python 3.10.6 haa1d7c7_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-fastjsonschema 2.16.2 py310h06a4308_0
pytorch 1.14.0.dev20221009 py3.10_cpu_0 pytorch-nightly pytorch-cuda 11.7 h67b0de4_0 pytorch-nightly pytorch-mutex 1.0 cpu pytorch-nightly pytz 2022.1 py310h06a4308_0
pyzmq 23.2.0 py310h6a678d5_0
qt-main 5.15.2 h327a75a_7
qt-webengine 5.15.9 hd2b0992_4
qtconsole 5.3.2 py310h06a4308_0
qtpy 2.2.0 py310h06a4308_0
qtwebkit 5.212 h4eab89a_4
readline 8.1.2 h7f8727e_1
requests 2.28.1 py310h06a4308_0
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 63.4.1 py310h06a4308_0
sip 6.6.2 py310h6a678d5_0
six 1.16.0 pyhd3eb1b0_1
sniffio 1.2.0 py310h06a4308_1
soupsieve 2.3.1 pyhd3eb1b0_0
sqlite 3.39.3 h5082296_0
stack_data 0.2.0 pyhd3eb1b0_0
terminado 0.13.1 py310h06a4308_0
testpath 0.6.0 py310h06a4308_0
tk 8.6.12 h1ccaba5_0
toml 0.10.2 pyhd3eb1b0_0
torchaudio 0.13.0.dev20221009 py310_cpu pytorch-nightly torchvision 0.15.0.dev20221009 py310_cpu pytorch-nightly tornado 6.2 py310h5eee18b_0
traitlets 5.1.1 pyhd3eb1b0_0
typing-extensions 4.3.0 py310h06a4308_0
typing_extensions 4.3.0 py310h06a4308_0
tzdata 2022c h04d1e81_0
urllib3 1.26.11 py310h06a4308_0
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py310h06a4308_1
websocket-client 0.58.0 py310h06a4308_4
wheel 0.37.1 pyhd3eb1b0_0
widgetsnbextension 3.5.2 py310h06a4308_0
x264 1!157.20191217 h7b6447c_0
xz 5.2.6 h5eee18b_0
zeromq 4.3.4 h2531618_0
zlib 1.2.12 h5eee18b_3
zstd 1.5.2 ha4553b6_0