lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.53k stars 835 forks source link

[Space] Add the ability to reinstall requirements specifically #1783

Closed Haoming02 closed 2 months ago

Haoming02 commented 2 months ago

Context

If you "mess up" your Python virtual environment (venv), such as installing Extensions that cause package version conflicts, one of the easiest way to solve this is to delete the venv folder and let the Webui reinstall everything again. However, currently there is no way to reinstall specifically the requirements for Spaces, other than completely uninstall and install again, which includes wiping and cloning the Space repo again as well. And certain repo is quite large in size (eg. The repo for IDM-VTON is close to 1 GB), so this approach might not be ideal.

PR