Files
stable-diffusion-webui-rembg/install.py
AUTOMATIC 64821f0476 first!
2023-03-12 18:32:00 +03:00

9 lines
282 B
Python

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")