added setup.sh and minor fix

This commit is contained in:
Lord Of Nougate 2022-04-11 00:13:30 +02:00
parent dfc970393a
commit 2d833b3566
2 changed files with 12 additions and 1 deletions

View File

@ -35,7 +35,7 @@ for i in os.listdir(convert_png):
if i.endswith('png'):
img = Image.open(convert_png + i)
nobg_img = remove(img)
nobg_img.save(removed_background + i)q
nobg_img.save(removed_background + i)
print('Cropping to content..')

11
setup.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
pyenv install 3.9.11
pyenv local 3.9.11
python -m venv .
source ./bin/activate
python -m pip install rembg pillow
mkdir input