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.

 

#2

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.

 

posted on 2023-08-24 00:06  zxddesk  阅读(607)  评论(0编辑  收藏  举报

导航