s4afa451dgf415f / colab_stable_diffusion

stable_diffusion_webui的colab部署版本(including English version),下载了所流行插件依赖和并进行初始化配置。拥有mod管理、手机自适应、图片信息本地读取等脚本。
654 stars 78 forks source link

无法正常运行 #33

Open hyb-oyqq opened 12 months ago

hyb-oyqq commented 12 months ago

GPU用的T4,Pay As You Go付费

(2.0、下载各种插件)代码块报错内容 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 2.1.0+cu118 requires torch==2.1.0, but you have torch 2.0.1 which is incompatible. torchdata 0.7.0 requires torch==2.1.0, but you have torch 2.0.1 which is incompatible. torchtext 0.16.0 requires torch==2.1.0, but you have torch 2.0.1 which is incompatible. torchvision 0.16.0+cu118 requires torch==2.1.0, but you have torch 2.0.1 which is incompatible.

(4、运行/重启)代码块报错内容 Launching Web UI with arguments: --share --lowram --disable-safe-unpickle --disable-console-progressbars --xformers --enable-insecure-extension-access --opt-sub-quad-attention --opt-channelslast --api --theme=light Traceback (most recent call last): File "/usr/libx32/QvVw39/launch.py", line 39, in <module> main() File "/usr/libx32/QvVw39/launch.py", line 35, in main start() File "/usr/libx32/QvVw39/modules/launch_utils.py", line 390, in start import webui File "/usr/libx32/QvVw39/webui.py", line 39, in <module> import pytorch_lightning # noqa: F401 # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/__init__.py", line 35, in <module> from pytorch_lightning.callbacks import Callback # noqa: E402 File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/__init__.py", line 14, in <module> from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/batch_size_finder.py", line 24, in <module> from pytorch_lightning.callbacks.callback import Callback File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/callback.py", line 25, in <module> from pytorch_lightning.utilities.types import STEP_OUTPUT File "/usr/local/lib/python3.10/dist-packages/pytorch_lightning/utilities/types.py", line 27, in <module> from torchmetrics import Metric File "/usr/local/lib/python3.10/dist-packages/torchmetrics/__init__.py", line 14, in <module> from torchmetrics import functional # noqa: E402 File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/__init__.py", line 14, in <module> from torchmetrics.functional.audio._deprecated import _permutation_invariant_training as permutation_invariant_training File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/audio/__init__.py", line 14, in <module> from torchmetrics.functional.audio.pit import permutation_invariant_training, pit_permutate File "/usr/local/lib/python3.10/dist-packages/torchmetrics/functional/audio/pit.py", line 22, in <module> from torchmetrics.utilities import rank_zero_warn File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/__init__.py", line 14, in <module> from torchmetrics.utilities.checks import check_forward_full_state_property File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/checks.py", line 25, in <module> from torchmetrics.metric import Metric File "/usr/local/lib/python3.10/dist-packages/torchmetrics/metric.py", line 30, in <module> from torchmetrics.utilities.data import ( File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/data.py", line 22, in <module> from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12, _XLA_AVAILABLE File "/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py", line 41, in <module> _TORCHVISION_GREATER_EQUAL_0_8: Optional[bool] = compare_version("torchvision", operator.ge, "0.8.0") File "/usr/local/lib/python3.10/dist-packages/lightning_utilities/core/imports.py", line 73, in compare_version pkg = importlib.import_module(package) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/usr/local/lib/python3.10/dist-packages/torchvision/__init__.py", line 6, in <module> from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils File "/usr/local/lib/python3.10/dist-packages/torchvision/_meta_registrations.py", line 7, in <module> import torchvision.extension # noqa: F401 File "/usr/local/lib/python3.10/dist-packages/torchvision/extension.py", line 92, in <module> _check_cuda_version() File "/usr/local/lib/python3.10/dist-packages/torchvision/extension.py", line 78, in _check_cuda_version raise RuntimeError( RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA major versions. PyTorch has CUDA Version=12.1 and torchvision has CUDA Version=11.8. Please reinstall the torchvision that matches your PyTorch install.

s4afa451dgf415f commented 12 months ago

xformer更新导致的问题,需要手动安装指定torch。我有时间看看更新下。