Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Cannot import name 'preserve_channel_dim' from 'albucore.utils'

Open AidenSorabji opened this issue 5 months ago • 2 comments

Hi! I'm having some trouble running the code through VSCode. Whenever I start the code, I get the following error message:

cannot import name 'preserve_channel_dim' from 'albucore.utils' (/Users/aiden/Desktop/Software Development/Github/Deep-Live-Cam/.venv/lib/python3.10/site-packages/albucore/utils.py)
  File "/Users/user/Desktop/Software Development/Github/Deep-Live-Cam/modules/face_analyser.py", line 4, in <module>
    import insightface
  File "/Users/user/Desktop/Software Development/Github/Deep-Live-Cam/modules/ui.py", line 10, in <module>
    from modules.face_analyser import get_one_face, get_unique_faces_from_target_image, get_unique_faces_from_target_video, add_blank_map, has_valid_map, simplify_maps
  File "/Users/user/Desktop/Software Development/Github/Deep-Live-Cam/modules/core.py", line 20, in <module>
    import modules.ui as ui
  File "/Users/user/Desktop/Software Development/Github/Deep-Live-Cam/run.py", line 3, in <module>
    from modules import core
ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (/Users/user/Desktop/Software Development/Github/Deep-Live-Cam/.venv/lib/python3.10/site-packages/albucore/utils.py)

I am on a silicone Macbook Pro ("14 M2 Pro) Running macOS 15 (24A335), so maybe that has to do with this issue. Has anyone else ran into this problem?

AidenSorabji avatar Sep 22 '24 04:09 AidenSorabji