mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git
synced 2026-11-04 23:27:26 +00:00
[GH-ISSUE #16] ModuleNotFoundError: No module named 'rembg' #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AUTOMATIC1111/stable-diffusion-webui-rembg#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @am576 on GitHub (Apr 19, 2023).
Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/16
I have just discovered this script. And after installing it on the fresh web-ui and enabling it in the Extensions tab I got this error
@Industrepreneur commented on GitHub (Apr 23, 2023):
Same. Added to colab+ using extension tab, but hit this error.
@epictetito commented on GitHub (Jul 1, 2023):
Same. Linux Debian 12. AUTOMATIC1111 webui v1.4.0
@mattdl-radix commented on GitHub (Jul 6, 2023):
Same, with preceding error:
I think the problem comes from line
pip install rembg==2.0.38 --no-deps --prefer-binaryin the install.py that has no matching version. You can change the line in the script to a matching version, e.g.rembg==2.0.41@Biniyamseid commented on GitHub (Sep 13, 2023):
same. I have tried to use it in my streamlit app, but got this error.
@gillbates commented on GitHub (Nov 4, 2023):
same problem here in sd 1.6, any ideas why?
@padit69 commented on GitHub (Nov 15, 2023):
same. i have using macos 14.1
@padit69 commented on GitHub (Nov 15, 2023):
` stable-diffusion-webui % rembg --help
Usage: rembg [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
b for a byte stream as input
i for a file as input
p for a folder as input
s for a http server
`
@check321 commented on GitHub (Nov 27, 2023):
thx,that works for me
@battester commented on GitHub (Dec 4, 2023):
I met this but I solved it by changing the rembg version in the install.py from 2.0.38 to 2.0.52, bcz when I run the webui script, it showed “ERROR: No matching distribution found for rembg==2.0.38”, so I go to pycharm to check if any version avaliable and then found the 2.0.52 version.
So I fix the version in install.py and then rerun the webui.sh, problem solved.
@ghost commented on GitHub (Feb 8, 2024):
Open powershell run the following command to activate automatic/A1111 virtualenv, modify path if needed.
C:\automatic\venv\Scripts\Activate.ps1Run the following to confirm no version of rembg is installed
pip index versions rembgRun the following to install the latest version of rembg
pip install rembg==2.0.54 --no-deps --prefer-binaryStart SD.Next/automatic/A1111 using webui.ps1, go to control, upload picture, select rembg mode and click generate.
It works now
Have a good one, cheers.
@DING03015 commented on GitHub (May 20, 2024):
I performed these two steps and other problems occurred
Error occurred when executing Image Rembg (Remove Background):
No module named 'pymatting'
I want to ask what I should do next
@Momin9 commented on GitHub (Jun 5, 2024):
It seems that there's an error loading the script postprocessing_rembg.py due to a missing module named rembg.
To resolve this issue, you need to install the rembg module. You can do this using pip, the Python package manager, by running the following command in your terminal or command prompt:
**pip install rembg**This command will download and install the rembg module along with its dependencies. After the installation is complete, you should be able to load the script postprocessing_rembg.py without encountering the ModuleNotFoundError.