stable diffusion 遇到的问题
#1
[Bug]: RuntimeError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports'
@jmaiap put torchmetrics==0.11.4 in either requirements.txt or requirements_version.txt. I put it in both so not sure which one fixed it.
[Bug]: RuntimeError("Cannot add middleware after an application has started")
This helped:
Open the Command Prompt or the Windows PowerShell.
Navigate to your Stable Diffusion folder using the cd command. For example, if your Stable Diffusion folder is located at C:\artificial-intelligence-tools\stable-diffusion-webui, you would run the following command:
cd C:\artificial-intelligence-tools\stable-diffusion-webui
.\venv\Scripts\Activate.bat
pip install fastapi==0.90.1
deactivate
Close cmd or powershell
Start Stable Diffusion as you normally would.