Closed JamasChuang94 closed 11 months ago
检查这里。 问题/2 Doesn't work The solution is to comment the line torch.nn.functional.pad = pad in stable-diffusion-webui-arc-directml\modules\devices.py After the comment, only the original error in the second half is missing, but the same error in the front I get the following error:
venv "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: ee3d3904c327031ed193a1e6d8472c3eed9409c7
Installing requirements for Web UI
Launching Web UI with arguments: --opt-sub-quad-attention --disable-nan-check
Thank you for helping to bring diversity to the graphics card market.
Disabled experimental graphic memory optimizations.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
Traceback (most recent call last):
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\launch.py", line 353, in <module>
start()
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\launch.py", line 344, in start
import webui
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\webui.py", line 15, in <module>
from modules import import_hook, errors, extra_networks, ui_extra_networks_checkpoints
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\modules\ui_extra_networks_checkpoints.py", line 6, in <module>
from modules import shared, ui_extra_networks, sd_models
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\modules\sd_models.py", line 17, in <module>
from modules.sd_hijack_inpainting import do_inpainting_hijack
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\modules\sd_hijack_inpainting.py", line 7, in <module>
import ldm.models.diffusion.ddpm
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 12, in <module>
import pytorch_lightning as pl
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\venv\lib\site-packages\pytorch_lightning\__init__.py", line 34, in <module>
from pytorch_lightning.callbacks import Callback # noqa: E402
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\venv\lib\site-packages\pytorch_lightning\callbacks\__init__.py", line 25, in <module>
from pytorch_lightning.callbacks.progress import ProgressBarBase, RichProgressBar, TQDMProgressBar
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\venv\lib\site-packages\pytorch_lightning\callbacks\progress\__init__.py", line 22, in <module>
from pytorch_lightning.callbacks.progress.rich_progress import RichProgressBar # noqa: F401
File "C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\venv\lib\site-packages\pytorch_lightning\callbacks\progress\rich_progress.py", line 20, in <module>
from torchmetrics.utilities.imports import _compare_version
ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (C:\Users\Jamas\Desktop\SD\stable-diffusion-webui-arc-directml\venv\lib\site-packages\torchmetrics\utilities\imports.py)`
Is there an existing issue for this?
What happened?
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled Traceback (most recent call last):
Steps to reproduce the problem
What should have happened?
No error
Commit where the problem happens
No
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
No
Console logs
Additional information
No response