This commit is contained in:
AUTOMATIC
2023-03-12 18:32:00 +03:00
commit 64821f0476
6 changed files with 106 additions and 0 deletions

8
install.py Normal file
View File

@@ -0,0 +1,8 @@
import launch
if not launch.is_installed("rembg"):
launch.run_pip("install rembg==2.0.30 --no-deps", "rembg")
for dep in ['onnxruntime', 'pymatting', 'pooch']:
if not launch.is_installed(dep):
launch.run_pip(f"install {dep}", f"{dep} for REMBG extension")