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

OneFormer-COCO-SemSegPreprocessor. No module named 'custom_detectron2' #395

Open
yuzh163 opened this issue Jul 8, 2024 · 0 comments
Open

Comments

@yuzh163
Copy link

yuzh163 commented Jul 8, 2024

I have tried many verified commits to test the OneFormer-COCO-SemSegPreprocessor of comfyui, all of them reported the same error: ModuleNotFoundError: No module named 'custom_detectron2'

Import times for custom nodes:
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\AIGODLIKE-COMFYUI-TRANSLATION
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_prompt_styler
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\sd-dynamic-thresholding
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\masquerade-nodes-comfyui
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
0.0 seconds (IMPORT FAILED): E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
0.0 seconds (IMPORT FAILED): E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf
0.0 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
0.1 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FizzNodes
0.1 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_smZNodes
0.3 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
0.3 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui-MusePose
0.7 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
1.2 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
4.8 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
54.3 seconds: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
got prompt
[rgthree] Using rgthree's optimized recursive execution.
[rgthree] First run patching recursive_output_delete_if_changed and recursive_will_execute.
[rgthree] Note: If execution seems broken due to forward ComfyUI changes, you can disable the optimization from rgthree settings in ComfyUI.
WAS Node Suite: Face found with: lbpcascade_animeface.xml
Failed to find E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\sk_model.pth.
Downloading from huggingface.co
E:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
sk_model.pth: 100%|███████████████████████████████████████████████████████████████| 17.2M/17.2M [00:09<00:00, 1.90MB/s]
[WinError 3] 系统找不到指定的路径。: 'E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\cache'
Failed to find E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\sk_model2.pth.
Downloading from huggingface.co
sk_model2.pth: 100%|██████████████████████████████████████████████████████████████| 17.2M/17.2M [00:08<00:00, 1.91MB/s]
[WinError 3] 系统找不到指定的路径。: 'E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\cache'
!!! Exception during processing!!! No module named 'custom_detectron2'
Traceback (most recent call last):
File "E:\SD\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SD\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SD\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\oneformer.py", line 15, in semantic_segmentate
from controlnet_aux.oneformer import OneformerSegmentor
File "E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\oneformer_init_.py", line 2, in
from .api import make_detectron2_model, semantic_run
File "E:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\oneformer\api.py", line 6, in
from custom_detectron2.config import get_cfg
ModuleNotFoundError: No module named 'custom_detectron2'

Prompt executed in 26.65 seconds

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

1 participant