Skip to content
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

Docker - Unexpected error from cudaGetDeviceCount() #118

Open
Zankaster opened this issue Jul 6, 2024 · 1 comment
Open

Docker - Unexpected error from cudaGetDeviceCount() #118

Zankaster opened this issue Jul 6, 2024 · 1 comment

Comments

@Zankaster
Copy link

I'm trying to run the docker image (since I wasn't able to install all the dependencies to run it on windows), after I build the image, I run it as the readme.md instructs but I get the following error. I'm on Windows 11 and I have a 4090:

Traceback (most recent call last):
File "/workspace/instantmesh/app.py", line 101, in
pipeline = pipeline.to(device0)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 727, in to
module.to(torch_device, torch_dtype)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2179, in to
return super().to(*args, **kwargs)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1160, in to
return self._apply(convert)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/nn/modules/module.py", line 810, in _apply
module._apply(fn)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/nn/modules/module.py", line 810, in _apply
module._apply(fn)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/nn/modules/module.py", line 810, in _apply
module._apply(fn)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/nn/modules/module.py", line 833, in _apply
param_applied = fn(param)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1158, in convert
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
File "/workspace/miniconda3/envs/instantmesh/lib/python3.10/site-packages/torch/cuda/init.py", line 298, in _lazy_init
torch._C._cuda_init()
RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 500: named symbol not found

@Innary
Copy link

Innary commented Sep 15, 2024

I think you should update your docker desktop version >4.34.x

AbdBarho/stable-diffusion-webui-docker#694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants