comfyui-reactor-node
comfyui-reactor-node copied to clipboard
ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils'
First, confirm
- [X] I have read the instruction carefully
- [X] I have searched the existing issues
- [X] I have updated the extension to the latest version
What happened?
hello,
i need to install ReActor Node for ComfyUI but it always get me this error: ((IMPORT FAILED) ReActor Node for ComfyUI)
i do whatere i can. even i did this: https://github.com/Gourieff/comfyui-reactor-node#insightfacebuild but i couldn't solve it. every time i face this error. i select "fix" button but not solve. please help me.
Steps to reproduce the problem
i install this node and keep getting the error. i don't know what is the problem and how to solve it.
Sysinfo
windows 10. rtx 4070 super 12gb. the nodes: link
Relevant console log
F:\AIs\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-09-22 07:39:31.659602
** Platform: Windows
** Python version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
** Python executable: F:\AIs\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: F:\AIs\ComfyUI_windows_portable\ComfyUI
** Log path: F:\AIs\ComfyUI_windows_portable\comfyui.log
Prestartup times for custom nodes:
10.3 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main
Total VRAM 12282 MB, total RAM 32509 MB
pytorch version: 2.4.1+cu121
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.0.1+cu118 with CUDA 1108 (you have 2.4.1+cu121)
Python 3.11.5 (you have 3.11.9)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\xformers\ops\swiglu_op.py:106: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
@torch.cuda.amp.custom_fwd
F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\xformers\ops\swiglu_op.py:127: FutureWarning: `torch.cuda.amp.custom_bwd(args...)` is deprecated. Please use `torch.amp.custom_bwd(args..., device_type='cuda')` instead.
@torch.cuda.amp.custom_bwd
xformers version: 0.0.22
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 SUPER : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: F:\AIs\ComfyUI_windows_portable\ComfyUI\web
Adding extra search path checkpoints F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/Stable-diffusion
Adding extra search path configs F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/Stable-diffusion
Adding extra search path vae F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/VAE
Adding extra search path loras F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/Lora
Adding extra search path loras F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/LyCORIS
Adding extra search path upscale_models F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/ESRGAN
Adding extra search path upscale_models F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/RealESRGAN
Adding extra search path upscale_models F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/SwinIR
Adding extra search path embeddings F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\embeddings
Adding extra search path hypernetworks F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/hypernetworks
Adding extra search path controlnet F:\AIs\Stable Diffusion AUTOMATIC1111\stable-diffusion-webui\models/ControlNet
F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
### Loading: ComfyUI-Manager (V2.50.3)
### ComfyUI Revision: 2715 [364b69e9] | Released on '2024-09-21'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
Traceback (most recent call last):
File "F:\AIs\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1994, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 23, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in <module>
from insightface.app.common import Face
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\__init__.py", line 18, in <module>
from . import app
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\__init__.py", line 2, in <module>
from .mask_renderer import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\mask_renderer.py", line 4, in <module>
import albumentations as A
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\__init__.py", line 6, in <module>
from .augmentations import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\__init__.py", line 1, in <module>
from .blur.functional import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\__init__.py", line 1, in <module>
from .functional import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\functional.py", line 9, in <module>
from albucore.utils import clipped, maybe_process_in_chunks, preserve_channel_dim
ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albucore\utils.py)
Cannot import F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: cannot import name 'preserve_channel_dim' from 'albucore.utils' (F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albucore\utils.py)
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\utils\outputs.py:63: FutureWarning: `torch.utils._pytree._register_pytree_node` is deprecated. Please use `torch.utils._pytree.register_pytree_node` instead.
torch.utils._pytree._register_pytree_node(
Traceback (most recent call last):
File "F:\AIs\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1994, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express\__init__.py", line 1, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express\nodes.py", line 14, in <module>
from insightface.app import FaceAnalysis
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\__init__.py", line 18, in <module>
from . import app
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\__init__.py", line 2, in <module>
from .mask_renderer import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\mask_renderer.py", line 4, in <module>
import albumentations as A
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\__init__.py", line 6, in <module>
from .augmentations import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\__init__.py", line 1, in <module>
from .blur.functional import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\__init__.py", line 1, in <module>
from .functional import *
File "F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\functional.py", line 9, in <module>
from albucore.utils import clipped, maybe_process_in_chunks, preserve_channel_dim
ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albucore\utils.py)
Cannot import F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express module for custom nodes: cannot import name 'preserve_channel_dim' from 'albucore.utils' (F:\AIs\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albucore\utils.py)
Base directory: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip
Checkpoints path: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip\Wav2Lip\checkpoints
Model path: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip\Wav2Lip\checkpoints\wav2lip_gan.pth
Wav2Lip path added to sys.path: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip\wav2lip
Directory created or exists: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip\facedetection
Current directory: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip
Wav2Lip path: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip\wav2lip
Using cuda for inference.
Import times for custom nodes:
0.0 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.1 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.3 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_bitsandbytes_NF4
0.6 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main
0.7 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
1.5 seconds (IMPORT FAILED): F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
1.7 seconds (IMPORT FAILED): F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-V-Express
3.6 seconds: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_wav2lip
Starting server
To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main\extension-node-map.json [DONE]
Update ComfyUI
CUSTOM NODE PULL: Success
Install: pip packages
Line is comment...skipping
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [DONE]
FETCH DATA from: F:\AIs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager-main\extension-node-map.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [DONE]
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [DONE]
Additional information
my comfy ui version is : v0.2.2 Release. i update all.