C0untFloyd / roop-unleashed

Evolved Fork of roop with Web Server and lots of additions
GNU Affero General Public License v3.0
2.27k stars 525 forks source link

cannot import name 'preserve_channel_dim' from 'albucore.utils' when executing sh runMacOS.sh #915

Closed dlmarston closed 1 month ago

dlmarston commented 1 month ago

Describe the bug Error message: ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/albucore/utils.py) after running sh runMacOS.sh

To Reproduce after running : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PJF16/roop-unleashed/master/installer/macOSinstaller.sh) side note - this requires a " added to the end of the line then running sh runMacOS.sh

Details What OS are you using?

Are you using a GPU?

Which version of roop unleashed are you using? 4.28

Screenshots If applicable, add screenshots to help explain your problem.

dlmarston commented 1 month ago

Running the run.py script... Traceback (most recent call last): File "/Users/dave/roop-unleashed/run.py", line 3, in from roop import core File "/Users/dave/roop-unleashed/roop/core.py", line 25, in import ui.main as main File "/Users/dave/roop-unleashed/ui/main.py", line 9, in from ui.tabs.faceswap_tab import faceswap_tab File "/Users/dave/roop-unleashed/ui/tabs/faceswap_tab.py", line 8, in from roop.face_util import extract_face_images, create_blank_image File "/Users/dave/roop-unleashed/roop/face_util.py", line 3, in import insightface File "/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/insightface/init.py", line 18, in from . import app File "/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/insightface/app/init.py", line 2, in from .mask_renderer import File "/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/insightface/app/mask_renderer.py", line 4, in import albumentations as A File "/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/albumentations/init.py", line 6, in from .augmentations import File "/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/albumentations/augmentations/init.py", line 1, in from .blur.functional import File "/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/albumentations/augmentations/blur/init.py", line 1, in from .functional import File "/Users/dave/roop-unleashed/.venv/lib/python3.11/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' (/Users/dave/roop-unleashed/.venv/lib/python3.11/site-packages/albucore/utils.py) Deactivating the virtual environment...

dlmarston commented 1 month ago

related?

https://www.reddit.com/r/comfyui/comments/1flnwmt/reactor_node_seems_to_be_broken_fix_inside/

dlmarston commented 1 month ago

added albucore==0.0.16 to requirements.txt and it seems to get past the error

Kingkladzemcr commented 1 month ago

Having same issue on paperspace Running ok on colab pro though

samedii commented 1 month ago

Downgrading also worked for me.

albucore = "^0.0.16"

Matiasfx commented 1 month ago

added albucore==0.0.16 to requirements.txt and it seems to get past the error

Can somebody explain step by step how to do this? thnx

poepoeng commented 1 month ago

Im ask CGPT to fix this error downgrade albumentations , i think its because insight or albumentations update : pip install albumentations==1.1.0 its work for me

siikdUde commented 1 month ago

added albucore==0.0.16 to requirements.txt and it seems to get past the error

Can somebody explain step by step how to do this? thnx

roop help 1 roop help 2

Matiasfx commented 1 month ago

added albucore==0.0.16 to requirements.txt and it seems to get past the error

Can somebody explain step by step how to do this? thnx

roop help 1 roop help 2

I tried and it didnt work. I'm new to all this. Do I change the txt and save and thats it, then just open the installer or do I have to run a comand? I tried both. Went to powershell and run the pip install -r requirements.txt but then when I tried the installer it was still in error. Thanks.

Divitjal commented 1 month ago

added albucore==0.0.16 to requirements.txt and it seems to get past the error

Can somebody explain step by step how to do this? thnx

roop help 1 roop help 2

didnt work it is for mac or windows?

Divitjal commented 1 month ago

added albucore==0.0.16 to requirements.txt and it seems to get past the error

do u have to reinstall after doing this?

abhishekdev-beelogical commented 1 month ago

Im ask CGPT to fix this error downgrade albumentations , i think its because insight or albumentations update : pip install albumentations==1.1.0 its work for me

This did not work for me. Can you please provide step-by-step instructions?

C0untFloyd commented 1 month ago

It seems to be not limited to Mac but a general problem with the latest version of the albucore package. Googling it, also Comfy and some others seem to have the same problem. I downgraded the requirements to the last known working version. Please everybody who has this problem, update your installation or do this automatically using the respective installer and tell me if it's working now.

Matiasfx commented 1 month ago

It seems to be not limited to Mac but a general problem with the latest version of the albucore package. Googling it, also Comfy and some others seem to have the same problem. I downgraded the requirements to the last known working version. Please everybody who has this problem, update your installation or do this automatically using the respective installer and tell me if it's working now.

that fixed it. thnx

VanHellsyng-23 commented 1 month ago

It works for me! Thaks dude :)

C0untFloyd commented 1 month ago

Nice. Closing this issue for good.