ltdrdata / ComfyUI-Impact-Pack

Custom nodes pack for ComfyUI This custom node helps to conveniently enhance images through Detector, Detailer, Upscaler, Pipe, and more.
GNU General Public License v3.0
1.78k stars 165 forks source link

UltralyticsDetectorProvider not found #163

Closed HenryFroio closed 1 year ago

HenryFroio commented 1 year ago

Yesteday was working just fine, but when i turned on comfyui today it was not working.

Captura de tela 2023-09-13 172145

sCarita commented 1 year ago

Having the same issue, not sure why...

bebuk commented 1 year ago

Seems ultralytics introduced a faulty release, check your version with pip freeze and if you have version 8.0.177 try running pip install ultralytics==8.0.176 to downgrade to working version.

image

sCarita commented 1 year ago

Worked for me. Thank you for the support.

ltdrdata commented 1 year ago

Seems ultralytics introduced a faulty release, check your version with pip freeze and if you have version 8.0.177 try running pip install ultralytics==8.0.176 to downgrade to working version.

image

Thank you for the answer. I'd modified requirements.txt to skip that version.

MrMax7 commented 1 year ago
Screenshot 2023-09-30 at 7 09 05 PM

I am new with ComfyUI and after doing all the steps to get here I am still blocked here. Is this still an issue for anyone?

ltdrdata commented 1 year ago

How did you install Impact Pack? And what messages were displayed on ComfyUI startup terminal?

MrMax7 commented 1 year ago

I installed it directly from within the comfyUI Manager by checking the box "Use local DB" since when unchecked it says it is updating.

Thanks for the assistance!

Screenshot 2023-09-30 at 7 43 36 PM Screenshot 2023-09-30 at 7 45 05 PM
ltdrdata commented 1 year ago

I installed it directly from within the comfyUI Manager by checking the box "Use local DB" since when unchecked it says it is updating.

Thanks for the assistance! Screenshot 2023-09-30 at 7 43 36 PM Screenshot 2023-09-30 at 7 45 05 PM

Try uninstall and reinstall.

MrMax7 commented 1 year ago

I installed it directly from within the comfyUI Manager by checking the box "Use local DB" since when unchecked it says it is updating. Thanks for the assistance! Screenshot 2023-09-30 at 7 43 36 PM Screenshot 2023-09-30 at 7 45 05 PM

Try uninstall and reinstall.

I disabled and then uninstalled it. Then reboot the page+Terminal. Then downloaded and rebooted the terminal+page and the same error still persists.

Is there an equivalent that could make the workflow work? I am quite new to this so I am not yet fully familiar with the system.

ltdrdata commented 1 year ago

I installed it directly from within the comfyUI Manager by checking the box "Use local DB" since when unchecked it says it is updating. Thanks for the assistance! Screenshot 2023-09-30 at 7 43 36 PM Screenshot 2023-09-30 at 7 45 05 PM

Try uninstall and reinstall.

I disabled and then uninstalled it. Then reboot the page+Terminal. Then downloaded and rebooted the terminal+page and the same error still persists.

Is there an equivalent that could make the workflow work? I am quite new to this so I am not yet fully familiar with the system.

Upload comfyui.log file in ComfyUI directory or portable directory if you are using portable version. And comfyui.prev.log, comfyui.prev2.log, too. if you restarted ComfyUI after reinstall, several times.

MrMax7 commented 1 year ago

I installed it directly from within the comfyUI Manager by checking the box "Use local DB" since when unchecked it says it is updating. Thanks for the assistance! Screenshot 2023-09-30 at 7 43 36 PM Screenshot 2023-09-30 at 7 45 05 PM

Try uninstall and reinstall.

I disabled and then uninstalled it. Then reboot the page+Terminal. Then downloaded and rebooted the terminal+page and the same error still persists. Is there an equivalent that could make the workflow work? I am quite new to this so I am not yet fully familiar with the system.

Upload comfyui.log file in ComfyUI directory or portable directory if you are using portable version. And comfyui.prev.log, comfyui.prev2.log, too. if you restarted ComfyUI after reinstall, several times.

I uploaded it hope it was the right place I am also very new to GitHub.

Thank you.

ShivaeAI commented 11 months ago

/ 屏幕截图 2023-11-02 155225help

ShivaeAI commented 11 months ago

Prestartup times for custom nodes: 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 24564 MB, total RAM 32581 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync VAE dtype: torch.bfloat16 Using pytorch cross attention

Loading: ComfyUI-Impact-Pack (V4.28.2)

Loading: ComfyUI-Impact-Pack (Subpack: V0.3)

Loading: ComfyUI-Inspire-Pack (V0.33)

Loading: ComfyUI-Manager (V0.36)

ComfyUI Revision: 1643 [dd116abf] | Released on '2023-11-02'

Traceback (most recent call last): File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff__init.py", line 8, in import custom_mmpkg.custom_mmcv as mmcv File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv__init__.py", line 4, in from .fileio import * File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\fileio__init__.py", line 2, in from .file_client import BaseStorageBackend, FileClient File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\fileio\file_client.py", line 15, in from custom_mmpkg.custom_mmcv.utils.misc import has_method File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\utils\init__.py", line 3, in from .config import Config, ConfigDict, DictAction File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\utils\config.py", line 17, in from yapf.yapflib.yapf_api import FormatCode ModuleNotFoundError: No module named 'yapf'

Cannot import D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff module for custom nodes: No module named 'yapf' Traceback (most recent call last): File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr__init__.py", line 2, in from .vae import VAEDecodeBatched, VAEEncodeBatched File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr\vae.py", line 5, in from .model.iter import try_get_iter File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr\model\iter.py", line 4, in from comfy.sd import ModelPatcher, CLIP, VAE ImportError: cannot import name 'ModelPatcher' from 'comfy.sd' (D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\comfy\sd.py)

Cannot import D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr module for custom nodes: cannot import name 'ModelPatcher' from 'comfy.sd' (D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\comfy\sd.py) FizzleDorf Custom Nodes: Loaded name : ComfyUI_node_Lilly file : D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly__init.py os.path.basename(file) : init.py os.path.splitext(os.path.basename(file))[0] : init working directory : D:\qiuye\ComfyUI\ComfyUI_windows_portable ───────────────────────────────────────────────────── init start ───────────────────────────────────────────────────── name : custom_nodes.ComfyUI_node_Lilly file : D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly__init.py os.path.basename(file) : init.py os.path.splitext(os.path.basename(file))[0] : init working directory : D:\qiuye\ComfyUI\ComfyUI_windows_portable [15:59:17] Load ok : CheckpointLoaderRandom init.py:83 Load ok : CheckpointLoaderSimpleText init.py:83 [15:59:17] wildcards card_path : wildcards.py:36 D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly....\wildc ards**.txt cards file count : 0 wildcards.py:187 wildcards test : aest wildcards.py:218 wildcards test : test wildcards.py:219 wildcards test : ?est wildcards.py:220 wildcards test : test wildcards.py:221 wildcards test : /test wildcards.py:222 wildcards test : /0/test wildcards.py:223 Load ok : CLIPTextEncodeWildcards init.py:83 Load ok : LoraLoaderText init.py:83 Load ok : LoraLoaderTextRandom init__.py:83 Load ok : Random_Sampler init.py:83 Load ok : VAELoaderDecode init.py:83 Load ok : VAELoaderText init__.py:83 Total VRAM 24564 MB, total RAM 32581 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync VAE dtype: torch.bfloat16 Load ok : SimpleSampler init.py:83 Load ok : SaveImageSimple init.py:83 Load ok : TextWildcards init.py:83 ────────────────────────────────────────────────────── init end ──────────────────────────────────────────────────────

Import times for custom nodes: 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\AIGODLIKE-ComfyUI-Translation 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_prompt_styler 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Noise 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-nodes 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Loopchain 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_experiments 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 0.0 seconds (IMPORT FAILED): D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.0 seconds (IMPORT FAILED): D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-dynamicprompts 0.1 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly 0.1 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FizzNodes 0.2 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 0.3 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://127.0.0.1:8188 FETCH DATA from: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json

ShivaeAI commented 11 months ago

@ltdrdata

ltdrdata commented 11 months ago

Prestartup times for custom nodes: 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 24564 MB, total RAM 32581 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync VAE dtype: torch.bfloat16 Using pytorch cross attention

Loading: ComfyUI-Impact-Pack (V4.28.2)

Loading: ComfyUI-Impact-Pack (Subpack: V0.3)

Loading: ComfyUI-Inspire-Pack (V0.33)

Loading: ComfyUI-Manager (V0.36)

ComfyUI Revision: 1643 [dd116abf] | Released on '2023-11-02'

Traceback (most recent call last): File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiffinit.py", line 8, in import custom_mmpkg.custom_mmcv as mmcv File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcvinit.py", line 4, in from .fileio import * File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\fileioinit.py", line 2, in from .file_client import BaseStorageBackend, FileClient File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\fileio\file_client.py", line 15, in from custom_mmpkg.custom_mmcv.utils.misc import has_method File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\utilsinit.py", line 3, in from .config import Config, ConfigDict, DictAction File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff\custom_mmpkg\custom_mmcv\utils\config.py", line 17, in from yapf.yapflib.yapf_api import FormatCode ModuleNotFoundError: No module named 'yapf'

Cannot import D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff module for custom nodes: No module named 'yapf' Traceback (most recent call last): File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmrinit.py", line 2, in from .vae import VAEDecodeBatched, VAEEncodeBatched File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr\vae.py", line 5, in from .model.iter import try_get_iter File "D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr\model\iter.py", line 4, in from comfy.sd import ModelPatcher, CLIP, VAE ImportError: cannot import name 'ModelPatcher' from 'comfy.sd' (D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\comfy\sd.py)

Cannot import D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr module for custom nodes: cannot import name 'ModelPatcher' from 'comfy.sd' (D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\comfy\sd.py) FizzleDorf Custom Nodes: Loaded name : ComfyUI_node_Lilly file : D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lillyinit.py os.path.basename(file) : init.py os.path.splitext(os.path.basename(file))[0] : init working directory : D:\qiuye\ComfyUI\ComfyUI_windows_portable ───────────────────────────────────────────────────── init start ───────────────────────────────────────────────────── name : custom_nodes.ComfyUI_node_Lilly file : D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lillyinit.py os.path.basename(file) : init.py os.path.splitext(os.path.basename(file))[0] : init working directory : D:\qiuye\ComfyUI\ComfyUI_windows_portable [15:59:17] Load ok : CheckpointLoaderRandom init.py:83 Load ok : CheckpointLoaderSimpleText init.py:83 [15:59:17] wildcards card_path : wildcards.py:36 D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly....\wildc ards.txt cards file count : 0 wildcards.py:187 wildcards test : aest wildcards.py:218 wildcards test : test wildcards.py:219 wildcards test : ?est wildcards.py:220 wildcards test : test wildcards.py:221 wildcards test : /test wildcards.py:222 wildcards test : /0/test wildcards.py:223 Load ok : CLIPTextEncodeWildcards init.py:83 Load ok : LoraLoaderText init.py:83 Load ok : LoraLoaderTextRandom init.py:83 Load ok : Random_Sampler init.py:83 Load ok : VAELoaderDecode init.py:83 Load ok : VAELoaderText init.py:83 Total VRAM 24564 MB, total RAM 32581 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync VAE dtype: torch.bfloat16 Load ok : SimpleSampler init.py:83 Load ok : SaveImageSimple init.py:83 Load ok : TextWildcards init**.py:83 ────────────────────────────────────────────────────── init end ──────────────────────────────────────────────────────

Import times for custom nodes: 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\AIGODLIKE-ComfyUI-Translation 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_prompt_styler 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Noise 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-nodes 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Loopchain 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_experiments 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 0.0 seconds (IMPORT FAILED): D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-nodes-hnmr 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.0 seconds (IMPORT FAILED): D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MotionDiff 0.0 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-dynamicprompts 0.1 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly 0.1 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FizzNodes 0.2 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 0.3 seconds: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://127.0.0.1:8188 FETCH DATA from: D:\qiuye\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json

It's not belongs to Impact-Pack.

Ask on here: https://github.com/Fannovel16/ComfyUI-MotionDiff/issues

hhh315xxx commented 5 months ago

mybe you keep these vision:torch 2.1.2+cu118,torchaudio 2.1.2,torchvision 0.16.2,ultralytics 8.0.176,AND DO NOT UPDATE THEM!!! I tried many times,when torch>=2.2.*,ultralytics=8.1.45,It doens't work anymore,and new erro:Loading: ComfyUI-Impact-Pack (V4.87.5) module 'cv2' has no attribute 'setNumThreads'. so,don't update them.

if still miss"ultralytics",but you sure it exists.

import ultralytics print(ultralytics.file)

it prints "path\to\site-packages\ultralytics__init__.py",

it's ultralytics path will be needed next step"

find the file "path\to\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\impact_subpack\impact\subcore.py", EDIT "subcore.py"

import sys sys.path.append(r"path\to\site-packages")

ultralyics's path

BEFORE

try: from ultralytics import YOLO except Exception as e: print(e) print(f"\n!!!!!\n\n[ComfyUI-Impact-Subpack] If this error occurs, please check the following link:\n\thttps://github.com/ltdrdata/ComfyUI-Impact-Pack/blob/Main/troubleshooting/TROUBLESHOOTING.md\n\n!!!!!\n") raise e



then save,restart comfyui.ultralytics will be found.