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

What is the correct way to install custom ComfyUI nodes using Stability Matrix? #494

Closed
p-veloso opened this issue Mar 3, 2024 · 5 comments
Labels
stale Stale issue or inactive for long period of time

Comments

@p-veloso
Copy link

p-veloso commented Mar 3, 2024

I have just started exploring Stability Matrix as a way for my students to quickly install Automatic1111, ComfyUI, etc. So far, the experience has been fantastic.

I am able to install the ControlNets models from Hugging Face using the tab model browser and I can load them in ComfyUI with the nodes However, I do not know how to properly install custom nodes, such as preprocessors. Should I just follow the instructions in https://github.com/Fannovel16/comfyui_controlnet_aux to install the nodes to the folder ...\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes?

@ionite34
Copy link
Member

ionite34 commented Mar 3, 2024

Maybe we should have added a teaching tip but there is a builtin extensions manager for ComfyUI, accessible like this:
image

Then just search for the node you want and install :)

image

@p-veloso
Copy link
Author

p-veloso commented Mar 3, 2024

@ionite34 this seems to be working well for ComfyUI so far. Nevertheless, it did not work for A111. Please, check #493.

@p-veloso p-veloso closed this as completed Mar 4, 2024
@p-veloso
Copy link
Author

p-veloso commented Mar 5, 2024

For one of my students, ComfyUI would crash when she was running the depth estimator:

Error occurred when executing DepthAnythingPreprocessor: [Errno 2] No such file or directory: 'C:\\Users\\Abigail Panneck\\AppData\\Roaming\\StabilityMatrix\\Packages\\ComfyUI\\custom_nodes\\comfyui_controlnet_aux\\ckpts\\LiheYoung/Depth-Anything\\cache\\spaces--LiheYoung--Depth-Anything\\blobs\\6c6a383e33e51c5fdfbf31e7ebcda943973a9e6a1cbef1564afe58d7f2e8fe63.incomplete' File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\depth_anything.py", line 19, in execute model = DepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device()) File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\depth_anything\__init__.py", line 40, in from_pretrained model_path = custom_hf_download(pretrained_model_or_path, filename, subfolder="checkpoints", repo_type="space") File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\util.py", line 297, in custom_hf_download model_path = hf_hub_download(repo_id=pretrained_model_or_path, File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\huggingface_hub\file_download.py", line 1480, in hf_hub_download with temp_file_manager() as temp_file: File "contextlib.py", line 135, in __enter__ File "C:\Users\Abigail Panneck\AppData\Roaming\StabilityMatrix\Packages\ComfyUI\venv\lib\site-packages\huggingface_hub\file_download.py", line 1464, in _resumable_file_manager with open(incomplete_path, "ab") as f:
Close

@p-veloso p-veloso reopened this Mar 5, 2024
allwavemedia pushed a commit to allwavemedia/StabilityMatrix that referenced this issue Mar 13, 2024
Copy link

github-actions bot commented Jul 8, 2024

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

@github-actions github-actions bot added the stale Stale issue or inactive for long period of time label Jul 8, 2024
Copy link

This issue was closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issue or inactive for long period of time
Projects
None yet
Development

No branches or pull requests

2 participants