From 2d833b35661b14f9abbf18eb2edca1529e12819f Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Mon, 11 Apr 2022 00:13:30 +0200 Subject: [PATCH] added setup.sh and minor fix --- main.py | 2 +- setup.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 setup.sh diff --git a/main.py b/main.py index bd6a971..4a65042 100644 --- a/main.py +++ b/main.py @@ -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..') diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..70894a0 --- /dev/null +++ b/setup.sh @@ -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