Download iopaint/installer.py from egg22314/object-to-object-replace: direct link, hf CLI and curl.
- Browser
- Download file 232 Bytes
-
https://huggingface.co/spaces/egg22314/object-to-object-replace/resolve/main/iopaint/installer.py
- Command line
-
hf download hf://spaces/egg22314/object-to-object-replace/iopaint/installer.py
-
curl -L -o installer.py https://huggingface.co/spaces/egg22314/object-to-object-replace/resolve/main/iopaint/installer.py
232 Bytes
| import subprocess | |
| import sys | |
| def install(package): | |
| subprocess.check_call([sys.executable, "-m", "pip", "install", package]) | |
| def install_plugins_package(): | |
| install("rembg") | |
| install("realesrgan") | |
| install("gfpgan") | |