Closed F1zzyD closed 3 weeks ago
install "ultralytics" manually inside the folder venv\scripts\activate then pip install ultralytics
Going into "venv\scripts only has a file called "activate". Windows does not allow me to make a folder when a file shares the same name.
Regardless. doing pip install ultralytics
gives me everything as "already satisfied".
venv\scripts\activate is a command , just type it , and press enter. this activates the virtual enviroment, if you use "pip install ....." without activating you just install it system wide not into the venv of comfy.
ComfyUI still reports "ComfyUI-Diffusers" as "(IMPORT FAILED). Here is a the log that I saw during installation after using pip install ultralytics
in the directory:
#######################################################################
[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension
## ComfyUI-Manager: EXECUTE => ['F:\\ComfyUI-Zluda\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', 'diffusers[torch]']
## Execute install/(de)activation script for 'F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers'
## ComfyUI-Manager: EXECUTE => ['F:\\ComfyUI-Zluda\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', 'pytorch_lightning']
## Execute install/(de)activation script for 'F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers'
## ComfyUI-Manager: EXECUTE => ['F:\\ComfyUI-Zluda\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', 'xformers']
## Execute install/(de)activation script for 'F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers'
Collecting xformers
Downloading xformers-0.0.28.post1.tar.gz (7.8 MB)
---------------------------------------- 7.8/7.8 MB 16.6 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
[!] error: subprocess-exited-with-error
[!]
[!] Getting requirements to build wheel did not run successfully.
[!] exit code: 1
[!]
[!] [17 lines of output]
[!] Traceback (most recent call last):
[!] File "F:\ComfyUI-Zluda\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
[!] main()
[!] File "F:\ComfyUI-Zluda\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
[!] json_out['return_val'] = hook(**hook_input['kwargs'])
[!] File "F:\ComfyUI-Zluda\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
[!] return hook(config_settings)
[!] File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fnqlk_m8\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
[!] return self._get_build_requires(config_settings, requirements=[])
[!] File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fnqlk_m8\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
[!] self.run_setup()
[!] File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fnqlk_m8\overlay\Lib\site-packages\setuptools\build_meta.py", line 516, in run_setup
[!] super().run_setup(setup_script=setup_script)
[!] File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-fnqlk_m8\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
[!] exec(code, locals())
[!] File "<string>", line 24, in <module>
[!] ModuleNotFoundError: No module named 'torch'
[!] [end of output]
[!]
[!] note: This error originates from a subprocess, and is likely not a problem with pip.
[!] error: subprocess-exited-with-error
[!]
[!] Getting requirements to build wheel did not run successfully.
[!] exit code: 1
[!]
[!] See above for output.
[!]
[!] note: This error originates from a subprocess, and is likely not a problem with pip.
install/(de)activation script failed: F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers
## ComfyUI-Manager: EXECUTE => ['F:\\ComfyUI-Zluda\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', 'git+https://github.com/cumulo-autumn/StreamDiffusion.git@main']
## Execute install/(de)activation script for 'F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers'
Collecting git+https://github.com/cumulo-autumn/StreamDiffusion.git@main
Cloning https://github.com/cumulo-autumn/StreamDiffusion.git (to revision main) to c:\users\admin\appdata\local\temp\pip-req-build-4ob9691i
[!] Running command git clone --filter=blob:none --quiet https://github.com/cumulo-autumn/StreamDiffusion.git 'C:\Users\admin\AppData\Local\Temp\pip-req-build-4ob9691i'
Resolved https://github.com/cumulo-autumn/StreamDiffusion.git to commit 765d71029b1404b94aee2865178d71c257c20318
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
[ComfyUI-Manager] Startup script completed.
#######################################################################
And further down after identifying my graphics card I get the same logs as my original post:
Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
[Prompt Server] web root: F:\ComfyUI-Zluda\web
Traceback (most recent call last):
File "F:\ComfyUI-Zluda\nodes.py", line 2001, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers\__init__.py", line 1, in <module>
from .nodes import *
File "F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers\nodes.py", line 5, in <module>
from .utils import SCHEDULERS, token_auto_concat_embeds, vae_pt_to_vae_diffuser, convert_images_to_tensors, convert_tensors_to_images, resize_images
File "F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers\utils.py", line 8, in <module>
from diffusers.pipelines.stable_diffusion.convert_from_ckpt import (
File "F:\ComfyUI-Zluda\venv\lib\site-packages\diffusers\__init__.py", line 5, in <module>
from .utils import (
File "F:\ComfyUI-Zluda\venv\lib\site-packages\diffusers\utils\__init__.py", line 38, in <module>
from .dynamic_modules_utils import get_class_from_dynamic_module
File "F:\ComfyUI-Zluda\venv\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in <module>
from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (F:\ComfyUI-Zluda\venv\lib\site-packages\huggingface_hub\__init__.py)
Cannot import F:\ComfyUI-Zluda\custom_nodes\ComfyUI-Diffusers module for custom nodes: cannot import name 'cached_download' from 'huggingface_hub' (F:\ComfyUI-Zluda\venv\lib\site-packages\huggingface_hub\__init__.py)
On our front page , on troubleshooting 2nd item
"xformers isn't usable with zluda so any nodes / packages that require it doesn't work. Flash attention doesn't work. And lastly using codeformer for face restoration gives "Failed inference: CUDA driver error: unknown error" You should use gfpgan / gpen / restoreformer or other face restoration models. "
XFORMERS doesnt work with zluda , it requires og nvidia gpu. And any node that relies on it and won't work with it (sometimes node requires xformers but can work with it so we just don't install it -for example deleting it from requirements.txt on nodes folder , before trying to install it (this auto install happens after you first install a node and restart comfy, so in theory you can just install it with manager , close comfy, go to the folder under custom_nodes, delete xformers from requirements.txt BUT almost all the time xformers is a must and with that in mind we just wont use that custom node in our zluda setup.
That's unfortunate, but I understand. I guess I need to look into getting an NVIDIA gpu to utilize ComfyUI then.
That's unfortunate, but I understand. I guess I need to look into getting an NVIDIA gpu to utilize ComfyUI then.
What are you specifically doing that requires xformers ?
Expected Behavior
ComfyUI install "ComfyUI-Diffusers"
Actual Behavior
ComfyUI reboots fails to install the dependencies required, and several more apparently...
Steps to Reproduce
Debug Logs
Other