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

Import failed, ImportError, albucore.utils #219

Open
brausesa opened this issue Sep 21, 2024 · 1 comment
Open

Import failed, ImportError, albucore.utils #219

brausesa opened this issue Sep 21, 2024 · 1 comment

Comments

@brausesa
Copy link

brausesa commented Sep 21, 2024

Ubuntu 24.04

....
File "/home/ComfyUI/nodes.py", line 1994, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/ComfyUI/custom_nodes/ComfyUI_InstantID/init.py", line 1, in
from .InstantID import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/home/ComfyUI/custom_nodes/ComfyUI_InstantID/InstantID.py", line 13, in
from insightface.app import FaceAnalysis
File "/home/.local/lib/python3.12/site-packages/insightface/init.py", line 18, in
from . import app
File "/home/.local/lib/python3.12/site-packages/insightface/app/init.py", line 2, in
from .mask_renderer import *
File "/home/.local/lib/python3.12/site-packages/insightface/app/mask_renderer.py", line 4, in
import albumentations as A
File "/home/.local/lib/python3.12/site-packages/albumentations/init.py", line 6, in
from .augmentations import *
File "/home/.local/lib/python3.12/site-packages/albumentations/augmentations/init.py", line 1, in
from .blur.functional import *
File "/home/.local/lib/python3.12/site-packages/albumentations/augmentations/blur/init.py", line 1, in
from .functional import *
File "/home/.local/lib/python3.12/site-packages/albumentations/augmentations/blur/functional.py", line 9, in
from albucore.utils import clipped, maybe_process_in_chunks, preserve_channel_dim
ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (/home/.local/lib/python3.12/site-packages/albucore/utils.py)

Cannot import /home/ComfyUI/custom_nodes/ComfyUI_InstantID module for custom nodes: cannot import name 'preserve_channel_dim' from 'albucore.utils' (/home/.local/lib/python3.12/site-packages/albucore/utils.py)
......

@brausesa
Copy link
Author

The version of albucore that albumentations depends on is incorrect.
just downgrade
do
pip install albucore==0.0.16

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