Closed DEV-MalletteS closed 2 months ago
This seems to be a problem with albumentations. I'm working on a PR to pin the version of albucore.
For now, which version do you suggest?
This is my suggestion https://github.com/plemeri/transparent-background/pull/80
You can use it with this command, pulling from a fork i'm using while the PR is approved.
pip install --extra-index-url https://download.pytorch.org/whl/cu118 git+https://github.com/kamal94/transparent-background@pin-albucore-version
You're the best, I can't wait to try this.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Kamal Kamalaldin @.> Sent: Sunday, September 22, 2024 1:50:23 PM To: plemeri/transparent-background @.> Cc: Stephane Mallette @.>; Author @.> Subject: Re: [plemeri/transparent-background] ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (Issue #79)
This is my suggestion #80https://github.com/plemeri/transparent-background/pull/80
You can use it with this command, pulling from a fork i'm using while the PR is approved.
pip install --extra-index-url https://download.pytorch.org/whl/cu118 @.***
— Reply to this email directly, view it on GitHubhttps://github.com/plemeri/transparent-background/issues/79#issuecomment-2366892675, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5EXGWMRMEPTO4CY427VMLZX37N7AVCNFSM6AAAAABOTVZJQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHA4TENRXGU. You are receiving this because you authored the thread.Message ID: @.***>
This was resolved as the PR is merged. Do you mind closing this issue?
No problem thank you very much.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Kamal Kamalaldin @.> Sent: Monday, September 23, 2024 11:15:27 AM To: plemeri/transparent-background @.> Cc: Stephane Mallette @.>; Author @.> Subject: Re: [plemeri/transparent-background] ImportError: cannot import name 'preserve_channel_dim' from 'albucore.utils' (Issue #79)
This was resolved as the PRhttps://github.com/plemeri/transparent-background/pull/80 is merged. Do you mind closing this issue?
— Reply to this email directly, view it on GitHubhttps://github.com/plemeri/transparent-background/issues/79#issuecomment-2368605373, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5EXGRYKHV3MUAPP3I6Q6LZYAWA7AVCNFSM6AAAAABOTVZJQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYGYYDKMZXGM. You are receiving this because you authored the thread.Message ID: @.***>
PS E:\transparent-background> transparent-background-gui Traceback (most recent call last): File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Python312\Scripts\transparent-background-gui.exe__main__.py", line 4, in
File "C:\Python312\Lib\site-packages\transparent_background__init.py", line 1, in
from transparent_background.Remover import Remover, console
File "C:\Python312\Lib\site-packages\transparent_background\Remover.py", line 15, in
import albumentations as A
File "C:\Python312\Lib\site-packages\albumentations\ init.py", line 6, in
from .augmentations import *
File "C:\Python312\Lib\site-packages\albumentations\augmentations\ init.py", line 1, in
from .blur.functional import *
File "C:\Python312\Lib\site-packages\albumentations\augmentations\blur\ init__.py", line 1, in
from .functional import *
File "C:\Python312\Lib\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' (C:\Python312\Lib\site-packages\albucore\utils.py)
PS E:\transparent-background>
Python312, you haven't specified which py version you used while building this. <3