ComfyUI SDWebUI升级pytorch随记

目前使用的版本是去年10月的1.6版本,有点老。希望支持新的特性,于是乎开始作死。从升级torch开始。先看看已有的版本:

(venv) root@ubuntu-sd-server:~# pip show torch
Name: torch
Version: 2.0.1
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: /root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages
Requires: filelock, jinja2, networkx, nvidia-cublas-cu11, nvidia-cuda-cupti-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-runtime-cu11, nvidia-cudnn-cu11, nvidia-cufft-cu11, nvidia-curand-cu11, nvidia-cusolver-cu11, nvidia-cusparse-cu11, nvidia-nccl-cu11, nvidia-nvtx-cu11, sympy, triton, typing-extensions
Required-by: accelerate, basicsr, clean-fid, clip, controlnet-aux, facexlib, gfpgan, invisible-watermark, kornia, lpips, open-clip-torch, pytorch-lightning, realesrgan, thop, timm, tomesd, torchdiffeq, torchmetrics, torchsde, torchvision, triton, ultralytics, xformers

然后开始升级最新的2.1.1。幸好空间留的大,升级把一堆相关的都升上去了,好家伙,一下干了快3个G。

(venv) root@ubuntu-sd-server:~# pip install --upgrade torch torchvision
Looking in indexes: https://pypi.doubanio.com/simple
Requirement already satisfied: torch in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (2.0.1)
Collecting torchDownloading https://mirrors.cloud.tencent.com/pypi/packages/a7/ad/fbe7d4cffb76da4e478438853b51305361c719cff929ab70a808e7fb75e7/torch-2.2.1-cp310-cp310-manylinux1_x86_64.whl (755.5 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 755.5/755.5 MB 735.0 kB/s eta 0:00:00
Requirement already satisfied: torchvision in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (0.15.2)
Collecting torchvisionDownloading https://mirrors.cloud.tencent.com/pypi/packages/1a/e8/13432ae6be567b577a4c89d1bd50084e4d989b379a7be8050380b5ab3a6e/torchvision-0.17.1-cp310-cp310-manylinux1_x86_64.whl (6.9 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 4.2 MB/s eta 0:00:00
Requirement already satisfied: filelock in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch) (3.12.4)
Requirement already satisfied: typing-extensions>=4.8.0 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch) (4.8.0)
Requirement already satisfied: sympy in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch) (1.12)
Requirement already satisfied: networkx in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch) (3.1)
Requirement already satisfied: jinja2 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch) (3.1.2)
Requirement already satisfied: fsspec in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch) (2023.9.2)
Collecting nvidia-cuda-nvrtc-cu12==12.1.105 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/b6/9f/c64c03f49d6fbc56196664d05dba14e3a561038a81a638eeb47f4d4cfd48/nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.7/23.7 MB 5.5 MB/s eta 0:00:00
Collecting nvidia-cuda-runtime-cu12==12.1.105 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/eb/d5/c68b1d2cdfcc59e72e8a5949a37ddb22ae6cade80cd4a57a84d4c8b55472/nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 823.6/823.6 kB 6.4 MB/s eta 0:00:00
Collecting nvidia-cuda-cupti-cu12==12.1.105 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/7e/00/6b218edd739ecfc60524e585ba8e6b00554dd908de2c9c66c1af3e44e18d/nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.1/14.1 MB 5.8 MB/s eta 0:00:00
Collecting nvidia-cudnn-cu12==8.9.2.26 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/ff/74/a2e2be7fb83aaedec84f391f082cf765dfb635e7caa9b49065f73e4835d8/nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 731.7/731.7 MB 825.3 kB/s eta 0:00:00
Collecting nvidia-cublas-cu12==12.1.3.1 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/37/6d/121efd7382d5b0284239f4ab1fc1590d86d34ed4a4a2fdb13b30ca8e5740/nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 410.6/410.6 MB 1.1 MB/s eta 0:00:00
Collecting nvidia-cufft-cu12==11.0.2.54 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/86/94/eb540db023ce1d162e7bea9f8f5aa781d57c65aed513c33ee9a5123ead4d/nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.6/121.6 MB 3.7 MB/s eta 0:00:00
Collecting nvidia-curand-cu12==10.3.2.106 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/44/31/4890b1c9abc496303412947fc7dcea3d14861720642b49e8ceed89636705/nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.5/56.5 MB 5.8 MB/s eta 0:00:00
Collecting nvidia-cusolver-cu12==11.4.5.107 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/bc/1d/8de1e5c67099015c834315e333911273a8c6aaba78923dd1d1e25fc5f217/nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 124.2/124.2 MB 3.0 MB/s eta 0:00:00
Collecting nvidia-cusparse-cu12==12.1.0.106 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/65/5b/cfaeebf25cd9fdec14338ccb16f6b2c4c7fa9163aefcf057d86b9cc248bb/nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl (196.0 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 196.0/196.0 MB 2.3 MB/s eta 0:00:00
Collecting nvidia-nccl-cu12==2.19.3 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/38/00/d0d4e48aef772ad5aebcf70b73028f88db6e5640b36c38e90445b7a57c45/nvidia_nccl_cu12-2.19.3-py3-none-manylinux1_x86_64.whl (166.0 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.0/166.0 MB 2.6 MB/s eta 0:00:00
Collecting nvidia-nvtx-cu12==12.1.105 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/da/d3/8057f0587683ed2fcd4dbfbdfdfa807b9160b809976099d36b8f60d08f03/nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.1/99.1 kB 15.3 MB/s eta 0:00:00
Collecting triton==2.2.0 (from torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/95/05/ed974ce87fe8c8843855daa2136b3409ee1c126707ab54a8b72815c08b49/triton-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (167.9 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.9/167.9 MB 2.4 MB/s eta 0:00:00
Collecting nvidia-nvjitlink-cu12 (from nvidia-cusolver-cu12==11.4.5.107->torch)Downloading https://mirrors.cloud.tencent.com/pypi/packages/58/d1/d1c80553f9d5d07b6072bc132607d75a0ef3600e28e1890e11c0f55d7346/nvidia_nvjitlink_cu12-12.4.99-py3-none-manylinux2014_x86_64.whl (21.1 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.1/21.1 MB 5.8 MB/s eta 0:00:00
Requirement already satisfied: numpy in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torchvision) (1.23.5)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torchvision) (9.5.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from jinja2->torch) (2.1.3)
Requirement already satisfied: mpmath>=0.19 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from sympy->torch) (1.3.0)
DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: triton, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, nvidia-cusparse-cu12, nvidia-cudnn-cu12, nvidia-cusolver-cu12, torch, torchvisionAttempting uninstall: tritonFound existing installation: triton 2.0.0Uninstalling triton-2.0.0:Successfully uninstalled triton-2.0.0Attempting uninstall: torchFound existing installation: torch 2.0.1Uninstalling torch-2.0.1:Successfully uninstalled torch-2.0.1Attempting uninstall: torchvisionFound existing installation: torchvision 0.15.2Uninstalling torchvision-0.15.2:Successfully uninstalled torchvision-0.15.2
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.
xformers 0.0.20 requires pyre-extensions==0.0.29, which is not installed.
xformers 0.0.20 requires torch==2.0.1, but you have torch 2.2.1 which is incompatible.
Successfully installed nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.19.3 nvidia-nvjitlink-cu12-12.4.99 nvidia-nvtx-cu12-12.1.105 torch-2.2.1 torchvision-0.17.1 triton-2.2.0

最后还ERROR了,友善的告诉我,xformers要挂了(之前为了节约内存和加速安装了xformers,看了下,最新的版本正好支持torch 2.2.1,于是顺便把xformers也升级了:

(venv) root@ubuntu-sd-server:~# pip install --upgrade xformers
Looking in indexes: https://pypi.doubanio.com/simple
Requirement already satisfied: xformers in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (0.0.20)
Collecting xformersDownloading https://mirrors.cloud.tencent.com/pypi/packages/81/29/df65a2933a6a9acf19a90e0aef74b0bc69635bbe890204d5d03e7d89c85d/xformers-0.0.25-cp310-cp310-manylinux2014_x86_64.whl (222.5 MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.5/222.5 MB 1.6 MB/s eta 0:00:00
Requirement already satisfied: numpy in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from xformers) (1.23.5)
Requirement already satisfied: torch==2.2.1 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from xformers) (2.2.1)
Requirement already satisfied: filelock in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (3.12.4)
Requirement already satisfied: typing-extensions>=4.8.0 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (4.8.0)
Requirement already satisfied: sympy in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (1.12)
Requirement already satisfied: networkx in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (3.1)
Requirement already satisfied: jinja2 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (3.1.2)
Requirement already satisfied: fsspec in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (2023.9.2)
Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (12.1.105)
Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (12.1.105)
Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (12.1.105)
Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (8.9.2.26)
Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (12.1.3.1)
Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (11.0.2.54)
Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (10.3.2.106)
Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (11.4.5.107)
Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (12.1.0.106)
Requirement already satisfied: nvidia-nccl-cu12==2.19.3 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (2.19.3)
Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (12.1.105)
Requirement already satisfied: triton==2.2.0 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from torch==2.2.1->xformers) (2.2.0)
Requirement already satisfied: nvidia-nvjitlink-cu12 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch==2.2.1->xformers) (12.4.99)
Requirement already satisfied: MarkupSafe>=2.0 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from jinja2->torch==2.2.1->xformers) (2.1.3)
Requirement already satisfied: mpmath>=0.19 in ./sd-webui-aki-v4.4/venv/lib/python3.10/site-packages (from sympy->torch==2.2.1->xformers) (1.3.0)
DEPRECATION: torchsde 0.2.5 has a non-standard dependency specifier numpy>=1.19.*; python_version >= "3.7". pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of torchsde or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: xformersAttempting uninstall: xformersFound existing installation: xformers 0.0.20Uninstalling xformers-0.0.20:Successfully uninstalled xformers-0.0.20
Successfully installed xformers-0.0.25

又干去222M。。

还有个pyre-extensions提示没装,顺手也装上。

然后拉了最新的ComfyUI,纯净没插件的能跑正常。

把SDWebUI 1.6也启动起来,不出意料的挂了:

################################################################
Launching launch.py...
################################################################
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
loading WD14-tagger reqs from /root/sd-webui-aki-v4.4/extensions/stable-diffusion-webui-wd14-tagger/requirements.txt
Checking WD14-tagger requirements.
ReActor preheating... Device: CUDA
Launching Web UI with arguments: --listen --skip-torch-cuda-test --disable-nan-check --skip-version-check --skip-python-version-check --enable-insecure-extension-access --api --xformers --xformers-flash-attention --opt-sdp-attention --no-half-vae --theme=dark --lora-dir /data/models/Lora --vae-dir /data/models/VAE --ckpt-dir /data/models/checkpoint --controlnet-dir /data/models/ControlNet --embeddings-dir /data/models/embeddings
2024-03-26 15:43:54.846349: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
*** Error setting up CodeFormerTraceback (most recent call last):File "/root/sd-webui-aki-v4.4/modules/codeformer_model.py", line 30, in setup_modelfrom modules.codeformer.codeformer_arch import CodeFormerFile "/root/sd-webui-aki-v4.4/modules/codeformer/codeformer_arch.py", line 9, in <module>from modules.codeformer.vqgan_arch import VQAutoEncoder, ResBlockFile "/root/sd-webui-aki-v4.4/modules/codeformer/vqgan_arch.py", line 11, in <module>from basicsr.utils import get_root_loggerFile "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/__init__.py", line 4, in <module>from .data import *File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/__init__.py", line 22, in <module>_dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/__init__.py", line 22, in <listcomp>_dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/realesrgan_dataset.py", line 11, in <module>from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernelsFile "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/degradations.py", line 8, in <module>from torchvision.transforms.functional_tensor import rgb_to_grayscaleModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'---
Traceback (most recent call last):File "/root/sd-webui-aki-v4.4/launch.py", line 48, in <module>main()File "/root/sd-webui-aki-v4.4/launch.py", line 44, in mainstart()File "/root/sd-webui-aki-v4.4/modules/launch_utils.py", line 436, in startwebui.webui()File "/root/sd-webui-aki-v4.4/webui.py", line 52, in webuiinitialize.initialize()File "/root/sd-webui-aki-v4.4/modules/initialize.py", line 71, in initializefrom modules import gfpgan_modelFile "/root/sd-webui-aki-v4.4/modules/gfpgan_model.py", line 4, in <module>import gfpganFile "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/gfpgan/__init__.py", line 3, in <module>from .data import *File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/gfpgan/data/__init__.py", line 10, in <module>_dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in dataset_filenames]File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/gfpgan/data/__init__.py", line 10, in <listcomp>_dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in dataset_filenames]File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/gfpgan/data/ffhq_degradation_dataset.py", line 7, in <module>from basicsr.data import degradations as degradationsFile "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/__init__.py", line 4, in <module>from .data import *File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/__init__.py", line 22, in <module>_dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/__init__.py", line 22, in <listcomp>_dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name in dataset_filenames]File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)File "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/realesrgan_dataset.py", line 11, in <module>from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernelsFile "/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/degradations.py", line 8, in <module>from torchvision.transforms.functional_tensor import rgb_to_grayscale
ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

网上查了一下报错,原来是torch新版本的functional_tensor改成_functional_tensor了,于是vi一下/root/sd-webui-aki-v4.4/venv/lib/python3.10/site-packages/basicsr/data/degradations.py,把文件里的调用修改一下,再启动。

很好,SDWebUI启动起来了

试了下--fp8_e4m3fn-text-enc --fp8_e4m3fn-unet参数启动ComfyUI开启前fp8精度,也貌似正常,明天再继续实测

有惊无险,睡觉。。。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/292344.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

矩阵置零 - LeetCode 热题 18

大家好&#xff01;我是曾续缘&#x1f929; 今天是《LeetCode 热题 100》系列 发车第 18 天 矩阵第 1 题 ❤️点赞 &#x1f44d; 收藏 ⭐再看&#xff0c;养成习惯 矩阵置零 给定一个 m x n 的矩阵&#xff0c;如果一个元素为 0 &#xff0c;则将其所在行和列的所有元素都设为…

动态规划——回文串问题

目录 练习1&#xff1a;回文子串 练习2&#xff1a;最长回文子串 练习3&#xff1a;回文串分割IV 练习4&#xff1a;分割回文串 练习5&#xff1a;最长回文子序列 练习6&#xff1a;让字符串成为回文串的最小插入次数 本篇文章主要学习使用动态规划来解决回文串相关问题&…

视频智能分析系统TSINGSEE青犀AI算法中台介绍及应用场景

TSINGSEE青犀AI算法中台是一款平台型产品&#xff0c;专注于提供各行业中小场景中部署解决方案。平台具备接入广、性能强、支持跨平台、芯片国产化等特点&#xff0c;可提供丰富的视图接入能力和智能分析能力。平台支持将不同类型、不同协议前端设备&#xff0c;通过不同网络环…

接口自动化之 + Jenkins + Allure报告生成 + 企微消息通知推送

接口自动化之 Jenkins Allure报告生成 企微消息通知推送 在jenkins上部署好项目&#xff0c;构建成功后&#xff0c;希望可以把生成的报告&#xff0c;以及结果统计发送至企微。 效果图&#xff1a; 实现如下。 1、生成allure报告 a. 首先在Jenkins插件管理中&#x…

鸿蒙之路由跳转router

router的使用都是基于Entry修饰的组件。 都是基于resources/base/profile/main-page.json中的路由配置来跳转的 router提供下列的几个方法 1.pushUrl -压栈一层盖一层(在鸿蒙中页面栈支持最大数值是32) 2.replaceUrl会替换当前页面&#xff0c;不管是不是同一个页面&#xf…

PS之更换背景色

1.更换背景色 导入图片后, 选中快速选择工具, 依次点击 选择主体 -> 选择并遮住 其后右边会出现一栏 “属性”, 拉到最下面的 “输出设置”, 选择净化颜色, 然后确认 此时应该得到抠出来的物体. 右下角点击新建图层 此时对图层2打开拾色器, 将图层2 设为白色 然后CTRL…

Python3:ModuleNotFoundError: No module named ‘click‘

问题背景 问题 ModuleNotFoundError: No module named click 解决方法 pip3 install click

使用 CSS 实现多立方体悬停颜色效果实现

使用 CSS 实现多立方体悬停效果实现 效果展示 CSS 知识点 filter 属性的 hue-rotate 值运用使用 CSS 实现立方体 场景布局分析 从效果图可以看出&#xff0c;要实现 3*3 的立方体集合&#xff0c;我们需要考虑一下怎么安排小立方体的布局。我这里的做法是使用span实现单个小…

二维码门楼牌管理应用平台建设:引领现代化小区管理新篇章

文章目录 前言一、二维码门楼牌管理应用平台概述二、三维动态单体化技术的优势三、二维码门楼牌管理应用平台的应用场景四、展望未来 前言 随着城市化的快速推进&#xff0c;现代化小区如雨后春笋般涌现&#xff0c;对小区管理的效率和智能化提出了更高要求。二维码门楼牌管理…

数字化服务升级:数字乡村改善农民生活质量

随着信息技术的迅猛发展&#xff0c;数字化浪潮已经深入社会的各个角落&#xff0c;为人们的生活带来了翻天覆地的变化。在乡村地区&#xff0c;数字化服务的升级正在逐步改变农民的生活方式&#xff0c;提高他们的生活质量。本文将围绕数字化服务升级&#xff0c;探讨数字乡村…

Spring IoC和DI

目录 IoC是什么&#xff1f; 理解IoC 示例 为什么要使用IOC DI是什么&#xff1f; IoC Controller&#xff08;控制器存储&#xff09; Controller的使用 ApplicationContext Service&#xff08;服务存储&#xff09; 类注解总结 Bean 方法注解的使用 定义多个…

A Simple Problem with Integers(线段树)

目录 描述 输入 输出 样例输入 样例输出 思路 建树 第一次错误解法&#xff08;正确解法在下面&#xff0c;可跳过这一步&#xff09; 正确解法 code 描述 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of …

Qt for WebAssembly 环境搭建 - Windows新手入门

Qt for WebAssembly 环境搭建 - Windows新手入门 一、所需工具软件1、安装Python2、安装Git2.1 注册Github账号2.2 下载安装Git2.2.1配置Git&#xff1a;2.2.2 配置Git环境2.2.3解决gitgithub.com: Permission denied (publickey) 3 安装em编译器 二、Qt配置编译器三、参考链接…

git基本操作二(小白快速上手)

1、前言 接上篇我们接着来继续讲 2、.gitignore忽略文件 创建一个.gitignore文件&#xff0c;并将其置于项目的根目录下&#xff0c;Git将自动识别并根据该规则忽略相应的文件和目录。 # 忽略所有的 .log 文件 *.log# 但跟踪所有的 build.log 文件 !build.log# 忽略所有的 /lo…

elementUI this.$msgbox msgBox自定义 样式自定义 富文本

看这个效果是不是很炫?突出重点提示内容,对于用户交互相当的棒! 下来说说具体实现: let self = this const h = self.$createElement; this.$msgbox({title: null,message: h("p", {style: "margin-top:10px"}, [h("i", {class: "el-i…

C# wpf 嵌入wpf控件

WPF Hwnd窗口互操作系列 第一章 嵌入Hwnd窗口 第二章 嵌入WinForm控件 第三章 嵌入WPF控件&#xff08;本章&#xff09; 第四章 底部嵌入HwndHost 文章目录 WPF Hwnd窗口互操作系列前言一、如何实现&#xff1f;1、继承HwndHost2、添加Content属性3、创建wpf窗口并设置Conten…

IDEA的使用(概念,安装,配置,)以及什么是字符集,模版

目录 Intellij IDEA IDE的概念 IntelliJ IDEA的安装 IntelliJ IDEA的使用 基本配置 JDK配置 创建Module 基本用法 字体配置 主题配置 字符集 设置IDEA默认字符集 注释模板 字符集 字符集简介 常见字符集 Intellij IDEA 我们不可能一直使用记事本之类变成&#…

2014年认证杯SPSSPRO杯数学建模C题(第一阶段)土地储备方案的风险评估全过程文档及程序

2014年认证杯SPSSPRO杯数学建模 C题 土地储备方案的风险评估 原题再现&#xff1a; 土地储备&#xff0c;是指市、县人民政府国土资源管理部门为实现调控土地市场、促进土地资源合理利用目标&#xff0c;依法取得土地&#xff0c;进行前期开发、储存以备供应土地的行为。土地…

深度学习pytorch——经典卷积网络之ResNet(持续更新)

错误率前五的神经网络&#xff08;图-1&#xff09;&#xff1a; 图-1 可以很直观的看到&#xff0c;随着层数的增加Error也在逐渐降低&#xff0c;因此深度是非常重要的&#xff0c;但是学习更好的网络模型和堆叠层数一样简单吗&#xff1f;通过实现表明&#xff08;图-2&…

Collection与数据结构 链表与LinkedList (一):链表概述与单向无头非循环链表实现

1.ArrayList的缺点 上篇文章我们已经对顺序表进行了实现,并且对ArrayList进行了使用,我们知道ArrayList底层是使用数组实现的. 由于其底层是一段连续空间&#xff0c;当在ArrayList任意位置插入或者删除元素时&#xff0c;就需要将后序元素整体往前或者往后搬移&#xff0c;时…