danielgatis / rembg

Rembg is a tool to remove images background
MIT License
15.46k stars 1.76k forks source link

Cant Start with docker image #590

Closed Brensom closed 4 months ago

Brensom commented 4 months ago

Describe the bug

% sudo docker run danielgatis/rembg i /home/admin/Desktop/BqmY8ZFc9E4.jpg /home/admin/Desktop/output.png
[sudo] password for admin:         
Usage: rembg i [OPTIONS] [INPUT] [OUTPUT]
Try 'rembg i --help' for help.

Error: Invalid value for '[INPUT]': '/home/admin/Desktop/BqmY8ZFc9E4.jpg': No such file or directory

OS Version: Archlinux

Rembg version: latest

Similar issue: https://github.com/danielgatis/rembg/issues/237

danielgatis commented 4 months ago

the readme is wrong :(

try it:

docker run -v path/to/input:/rembg danielgatis/rembg i input.png path/to/output/output.png
Brensom commented 4 months ago

the readme is wrong :(

try it:

docker run -v path/to/input:/rembg danielgatis/rembg i input.png path/to/output/output.png

Thank you. But it's still not right. You need this:

% sudo docker run -v /home/admin/Desktop:/rembg danielgatis/rembg i 00061-1513292305.png output.png

If you do as you write, you will get an error:

% sudo docker run -v /home/admin/Desktop:/rembg danielgatis/rembg i 00061-1513292305.png /home/admin/Desktop/output.png
[sudo] password for admin:         
Error: Could not open file '/home/admin/Desktop/output.png': No such file or directory