plemeri / transparent-background

This is a background removing tool powered by InSPyReNet (ACCV 2022)
MIT License
731 stars 80 forks source link

mac Stable Diffusion /bin/sh: transparent-background: command not found #12

Closed z77256012 closed 1 year ago

z77256012 commented 1 year ago

Stable Diffusion has been installed locally transparent-background,But the terminal still shows frame extracted /bin/sh: transparent-background: command not found mask created

image Stable Diffusion Installation path is shown in the figure.

plemeri commented 1 year ago

Hello, I'm not familiar with Stable Diffusion but as I know, something related to the command not found error usually came from the Environment Variable.

z77256012 commented 1 year ago

@plemeri > transparent-background Downloading... From (uriginal): https://drive.google.com/uc?id=13oBl5MTVcWER3YU4fSxW3ATlVfueFQPY From (redirected): https://drive.google.com/uc?id=13oBl5MTVcWER3YU4fSxW3ATlVfueFQPY&confirm=t&uuid=c31feaa3-c638-430e-ba39-3bda0b3eed1a To: /Users/settybo/.transparent-background/latest.pth 100%|████████████████████████████████████████| 368M/368M [00:38<00:00, 9.58MB/s] Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/bin/transparent-background", line 8, in sys.exit(console()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/transparent_background/Remover.py", line 111, in console if os.path.isdir(args.source): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/genericpath.py", line 42, in isdir st = os.stat(s) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

plemeri commented 1 year ago

Please check the usage from readme file. At least you need to provide a image file path for command-line tool something like below.

$ transparent-background --source test.png