-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Cannot use GPU #661
Comments
The same goes for me. I'll write down a little more detailed environment. If I launch the program in server mode and check the GPU utilisation with the |
Same with me |
My solution is
Then it runs on GPU. |
providers = ['CUDAExecutionProvider', 'CPUExecutionProvider'] You can try this. It worked for me. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
pip install rembg[gpu]
call
from rembg import remove
from PIL import Image
input_path = 'input.png'
output_path = 'output.png'
input = Image.open(input_path)
output = remove(input)
output.save(output_path)
GPU is not running
The text was updated successfully, but these errors were encountered: