mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git
synced 2026-01-26 19:29:59 +00:00
9 lines
282 B
Python
9 lines
282 B
Python
import launch
|
|
|
|
if not launch.is_installed("rembg"):
|
|
launch.run_pip("install rembg==2.0.36 --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")
|