You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the image using Dockerfile, I run it and get the error: [System ARGV] ['launch.py', '--listen'] Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] Fooocus version: 2.5.5 Environment: config_path = /content/data/config.txt Environment: config_example_path = /content/data/config_modification_tutorial.txt Environment: path_checkpoints = /content/data/models/checkpoints/ Environment: path_loras = /content/data/models/loras/ Environment: path_embeddings = /content/data/models/embeddings/ Environment: path_vae_approx = /content/data/models/vae_approx/ Environment: path_upscale_models = /content/data/models/upscale_models/ Environment: path_inpaint = /content/data/models/inpaint/ Environment: path_controlnet = /content/data/models/controlnet/ Environment: path_clip_vision = /content/data/models/clip_vision/ Environment: path_fooocus_expansion = /content/data/models/prompt_expansion/fooocus_expansion/ Environment: path_outputs = /content/app/outputs/ [Cleanup] Attempting to delete content of temp dir /tmp/fooocus [Cleanup] Cleanup successful Traceback (most recent call last): File "/content/app/launch.py", line 152, in <module> from webui import * File "/content/app/webui.py", line 10, in <module> import modules.async_worker as worker File "/content/app/modules/async_worker.py", line 3, in <module> from extras.inpaint_mask import generate_mask_from_image, SAMOptions File "/content/app/extras/inpaint_mask.py", line 6, in <module> from extras.GroundingDINO.util.inference import default_groundingdino File "/content/app/extras/GroundingDINO/util/inference.py", line 3, in <module> import ldm_patched.modules.model_management as model_management File "/content/app/ldm_patched/modules/model_management.py", line 121, in <module> total_vram = get_total_memory(get_torch_device()) / (1024 * 1024) File "/content/app/ldm_patched/modules/model_management.py", line 90, in get_torch_device return torch.device(torch.cuda.current_device()) File "/usr/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 769, in current_device _lazy_init() File "/usr/local/lib/python3.10/dist-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
At the same time, I can go into the container. From there the Video Card is visible and CUDA too:
`~/Fooocus# docker run --rm --gpus all --runtime=nvidia -it
ghcr.io/lllyasviel/fooocus bash
user@f0170b23a403:/content$ nvidia-smi
Sat Dec 7 11:49:01 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.72 Driver Version: 566.14 CUDA Version: 12.7 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1060 6GB On | 00000000:01:00.0 On | N/A |
| 0% 35C P8 14W / 120W | 5272MiB / 6144MiB | 6% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 30 G /Xwayland N/A |
+-----------------------------------------------------------------------------------------+`
If I understand correctly, there are two errors here, but I don't understand how to fix them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed the image using Dockerfile, I run it and get the error:
[System ARGV] ['launch.py', '--listen'] Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] Fooocus version: 2.5.5 Environment: config_path = /content/data/config.txt Environment: config_example_path = /content/data/config_modification_tutorial.txt Environment: path_checkpoints = /content/data/models/checkpoints/ Environment: path_loras = /content/data/models/loras/ Environment: path_embeddings = /content/data/models/embeddings/ Environment: path_vae_approx = /content/data/models/vae_approx/ Environment: path_upscale_models = /content/data/models/upscale_models/ Environment: path_inpaint = /content/data/models/inpaint/ Environment: path_controlnet = /content/data/models/controlnet/ Environment: path_clip_vision = /content/data/models/clip_vision/ Environment: path_fooocus_expansion = /content/data/models/prompt_expansion/fooocus_expansion/ Environment: path_outputs = /content/app/outputs/ [Cleanup] Attempting to delete content of temp dir /tmp/fooocus [Cleanup] Cleanup successful Traceback (most recent call last): File "/content/app/launch.py", line 152, in <module> from webui import * File "/content/app/webui.py", line 10, in <module> import modules.async_worker as worker File "/content/app/modules/async_worker.py", line 3, in <module> from extras.inpaint_mask import generate_mask_from_image, SAMOptions File "/content/app/extras/inpaint_mask.py", line 6, in <module> from extras.GroundingDINO.util.inference import default_groundingdino File "/content/app/extras/GroundingDINO/util/inference.py", line 3, in <module> import ldm_patched.modules.model_management as model_management File "/content/app/ldm_patched/modules/model_management.py", line 121, in <module> total_vram = get_total_memory(get_torch_device()) / (1024 * 1024) File "/content/app/ldm_patched/modules/model_management.py", line 90, in get_torch_device return torch.device(torch.cuda.current_device()) File "/usr/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 769, in current_device _lazy_init() File "/usr/local/lib/python3.10/dist-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
At the same time, I can go into the container. From there the Video Card is visible and CUDA too:
`~/Fooocus# docker run --rm --gpus all --runtime=nvidia -it
ghcr.io/lllyasviel/fooocus bash
user@f0170b23a403:/content$ nvidia-smi
Sat Dec 7 11:49:01 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.72 Driver Version: 566.14 CUDA Version: 12.7 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1060 6GB On | 00000000:01:00.0 On | N/A |
| 0% 35C P8 14W / 120W | 5272MiB / 6144MiB | 6% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 30 G /Xwayland N/A |
+-----------------------------------------------------------------------------------------+`
If I understand correctly, there are two errors here, but I don't understand how to fix them.
Beta Was this translation helpful? Give feedback.
All reactions