vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.64k stars 415 forks source link

A way to "revert" to an older version ? (cannot reproduce Old Seeds / Speed Issues) #2804

Closed EKKIV0K closed 8 months ago

EKKIV0K commented 8 months ago

Feature description

Hello, i have a problem, i moved recently to another house and i formated my computer, i wanted to use the last version of SD.NEXT and continuing my professional works on this version : "[89ba8e3]" -> (commit/89ba8e3cf6f4e7697ffe0298b49bed7ea108b039)

But 1st : the new version added some weird samplers modification that i can't figure it out : (brownian noise & discard penultimate sigma) 2nd : Impossible to reproduce old seeds (and that's a real problem) 3rd : Generation speed seems to impact a lot since the update than the version mentioned above.

I tried to roll back version to that one : "[89ba8e3]" -> (commit/89ba8e3cf6f4e7697ffe0298b49bed7ea108b039)

But, i cannot install it cause a Git repo problem, cannot find it .... Is there a way to get that version ? cause my works depend on it, thanks :)

oh and lycoris models seems to not showing too even with the extension (unmaintained) activated.

Version Platform Description

Windows 10 21h2 Pro / Opera GX

brknsoul commented 8 months ago

git reset --hard <commit number>

EKKIV0K commented 8 months ago

git reset --hard <commit number>

do i need a fresh install of the current version ? @brknsoul

brknsoul commented 8 months ago

No, you can do that on your current install.

EKKIV0K commented 8 months ago

Download the default model? (y/N) n 14:24:28-021354 ERROR codeformer: ModuleNotFoundError ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\automatic\modules\codeformer_model.py:31 in setup_model │ │ │ │ 30 │ │ from torchvision.transforms.functional import normalize │ │ > 31 │ │ from modules.codeformer.codeformer_arch import CodeFormer │ │ 32 │ │ from basicsr.utils import img2tensor, tensor2img │ │ │ │ C:\SDNEXT\automatic\modules\codeformer\codeformer_arch.py:10 in │ │ │ │ 9 │ │ > 10 from modules.codeformer.vqgan_arch import VQAutoEncoder, ResBlock │ │ 11 from basicsr.utils import get_root_logger │ │ │ │ C:\SDNEXT\automatic\modules\codeformer\vqgan_arch.py:13 in │ │ │ │ 12 import copy │ │ > 13 from basicsr.utils import get_root_logger │ │ 14 from basicsr.utils.registry import ARCH_REGISTRY │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr__init.py:4 in │ │ │ │ 3 from .archs import │ │ > 4 from .data import │ │ 5 from .losses import │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data__init.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data__init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib\init.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py:11 in │ │ │ │ 10 │ │ > 11 from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels │ │ 12 from basicsr.data.transforms import augment │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data\degradations.py:8 in │ │ │ │ 7 from scipy.stats import multivariate_normal │ │ > 8 from torchvision.transforms.functional_tensor import rgb_to_grayscale │ │ 9 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' 14:24:28-118140 ERROR gfpgan: ModuleNotFoundError ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\automatic\modules\gfpgan_model.py:76 in setup_model │ │ │ │ 75 │ try: │ │ > 76 │ │ import gfpgan │ │ 77 │ │ import facexlib │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\gfpgan\init__.py:3 in │ │ │ │ 2 from .archs import │ │ > 3 from .data import │ │ 4 from .models import │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\gfpgan\data__init.py:10 in │ │ │ │ 9 # import all the dataset modules │ │ > 10 _dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in │ │ 11 │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\gfpgan\data__init__.py:10 in │ │ │ │ 9 # import all the dataset modules │ │ > 10 _dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in │ │ 11 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib__init.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ ... 2 frames hidden ... │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data\init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data\init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib\init__.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py:11 in │ │ │ │ 10 │ │ > 11 from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels │ │ 12 from basicsr.data.transforms import augment │ │ │ │ C:\SDNEXT\automatic\venv\lib\site-packages\basicsr\data\degradations.py:8 in │ │ │ │ 7 from scipy.stats import multivariate_normal │ │ > 8 from torchvision.transforms.functional_tensor import rgb_to_grayscale │ │ 9 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' 14:24:28-288645 ERROR Module load: extensions-builtin\a1111-sd-webui-lycoris\scripts\lyco_script.py: ImportError ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\automatic\modules\script_loading.py:18 in load_module │ │ │ │ 17 │ │ with contextlib.redirect_stdout(io.StringIO()) as stdout: │ │ > 18 │ │ │ module_spec.loader.exec_module(module) │ │ 19 │ │ setup_logging() # reset since scripts can hijaack logging │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ C:\SDNEXT\automatic\extensions-builtin\a1111-sd-webui-lycoris\scripts\lyco_script.py:6 in │ │ │ │ 5 │ │ > 6 import l_network as network │ │ 7 import l_networks as networks │ │ │ │ C:\SDNEXT\automatic\extensions-builtin\a1111-sd-webui-lycoris\l_network.py:9 in │ │ │ │ 8 │ │ > 9 from modules import sd_models, cache, errors, hashes, shared │ │ 10 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ImportError: cannot import name 'cache' from 'modules' (unknown location)

@brknsoul

brknsoul commented 8 months ago

Yeah, that's why old versions aren't supported.

I'd just stick with the new versions, old gens be damned.

EKKIV0K commented 8 months ago

and ....... 14:28:13-896179 WARNING Setup complete with errors: 1 14:28:13-897190 WARNING See log file for more details: C:\SDNEXT\sdnext.log 14:28:13-914502 INFO Extension preload: {'extensions-builtin': 0.01, 'extensions': 0.0} 14:28:13-914502 INFO Command line args: [] ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\launch.py:213 in │ │ │ │ 212 │ │ > 213 uv, instance = start_server(immediate=True, server=None) │ │ 214 while True: │ │ │ │ C:\SDNEXT\launch.py:147 in start_server │ │ │ │ 146 get_custom_args() │ │ > 147 module_spec.loader.exec_module(server) │ │ 148 uvicorn = None │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ C:\SDNEXT\webui.py:11 in │ │ │ │ 10 from threading import Thread │ │ > 11 import modules.loader │ │ 12 import torch # pylint: disable=wrong-import-order │ │ │ │ ... 3 frames hidden ... │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\routing.py:22 in │ │ │ │ 21 │ │ > 22 from fastapi import params │ │ 23 from fastapi._compat import ( │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\params.py:5 in │ │ │ │ 4 │ │ > 5 from fastapi.openapi.models import Example │ │ 6 from pydantic.fields import FieldInfo │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\openapi\models.py:4 in │ │ │ │ 3 │ │ > 4 from fastapi._compat import ( │ │ 5 PYDANTIC_V2, │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi_compat.py:20 in │ │ │ │ 19 │ │ > 20 from fastapi.exceptions import RequestErrorModel │ │ 21 from fastapi.types import IncEx, ModelNameMap, UnionType │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\exceptions.py:6 in │ │ │ │ 5 from starlette.exceptions import WebSocketException as StarletteWebSocketException │ │ > 6 from typing_extensions import Annotated, Doc # type: ignore [attr-defined] │ │ 7 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ImportError: cannot import name 'Doc' from 'typing_extensions' (C:\SDNEXT\venv\lib\site-packages\typing_extensions.py) Appuyez sur une touche pour continuer...

vladmandic commented 8 months ago

safer way than git reset --hard is simply git checkout 89ba8e3c and delete venv since requirements have changed drastically since then.

but that version is from 09/20/2023 - 5 months ago. if you have performance degradations, document them so they can be solved.

sure, you're allowed to use that commit - but its beyond obsolete and not supported by any means. we're not talking about going back a version or two, we're talking about 5 months.

EKKIV0K commented 8 months ago

@vladmandic

Hi Vlad i hope you are fine :) So, the better way is :

1st install the last version, 2nd close the cmd window and type "git checkout 89ba8e3c" in the sdnext folder, 3rd close the git window and then delete the virtual environment folder in sdnext and start ?

EKKIV0K commented 8 months ago

you know i don't want to bother any of you, it's crucial for me to get back to this version cause ALL of my last works are based on that specific version.

vladmandic commented 8 months ago

@vladmandic

Hi Vlad i hope you are fine :) So, the better way is :

1st install the last version, 2nd close the cmd window and type "git checkout 89ba8e3" in the sdnext folder, 3rd close the git window and then delete the virtual environment folder in sdnext and start ?

correct

EKKIV0K commented 8 months ago

let's try this :)

EKKIV0K commented 8 months ago

@vladmandic

i was thinking about a thing that will be great for people like me, Why don't include in the metadata of a generated images more infos like : Advanced settings used (not the version of sdnext cause it's already in) like the settings in config file after modification if modifications happened into it ?

cause sometimes we can do good settings for sdnext that will works with our purposes, but after reinstallation we loose all of it and can't remember the things we made....

EKKIV0K commented 8 months ago

@vladmandic

outch after you tricks here is the problems :

14:45:56-348238 ERROR codeformer: ModuleNotFoundError ┌───────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\modules\codeformer_model.py:31 in setup_model │ │ │ │ 30 │ │ from torchvision.transforms.functional import normalize │ │ > 31 │ │ from modules.codeformer.codeformer_arch import CodeFormer │ │ 32 │ │ from basicsr.utils import img2tensor, tensor2img │ │ │ │ C:\SDNEXT\modules\codeformer\codeformer_arch.py:10 in │ │ │ │ 9 │ │ > 10 from modules.codeformer.vqgan_arch import VQAutoEncoder, ResBlock │ │ 11 from basicsr.utils import get_root_logger │ │ │ │ C:\SDNEXT\modules\codeformer\vqgan_arch.py:13 in │ │ │ │ 12 import copy │ │ > 13 from basicsr.utils import get_root_logger │ │ 14 from basicsr.utils.registry import ARCH_REGISTRY │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr__init__.py:4 in │ │ │ │ 3 from .archs import │ │ > 4 from .data import │ │ 5 from .losses import * │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data__init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data__init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py:11 in │ │ │ │ 10 │ │ > 11 from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels │ │ 12 from basicsr.data.transforms import augment │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\degradations.py:8 in │ │ │ │ 7 from scipy.stats import multivariate_normal │ │ > 8 from torchvision.transforms.functional_tensor import rgb_to_grayscale │ │ 9 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' 14:45:56-445156 ERROR gfpgan: ModuleNotFoundError ┌───────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\modules\gfpgan_model.py:76 in setup_model │ │ │ │ 75 │ try: │ │ > 76 │ │ import gfpgan │ │ 77 │ │ import facexlib │ │ │ │ C:\SDNEXT\venv\lib\site-packages\gfpgan__init__.py:3 in │ │ │ │ 2 from .archs import │ │ > 3 from .data import │ │ 4 from .models import * │ │ │ │ C:\SDNEXT\venv\lib\site-packages\gfpgan\data__init.py:10 in │ │ │ │ 9 # import all the dataset modules │ │ > 10 _dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in │ │ 11 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\gfpgan\data__init.py:10 in │ │ │ │ 9 # import all the dataset modules │ │ > 10 _dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in │ │ 11 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib__init.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ ... 2 frames hidden ... │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib\init__.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py:11 in │ │ │ │ 10 │ │ > 11 from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels │ │ 12 from basicsr.data.transforms import augment │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\degradations.py:8 in │ │ │ │ 7 from scipy.stats import multivariate_normal │ │ > 8 from torchvision.transforms.functional_tensor import rgb_to_grayscale │ │ 9 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' 14:45:56-614855 ERROR Module load: extensions-builtin\a1111-sd-webui-lycoris\scripts\lyco_script.py: ImportError ┌───────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\modules\script_loading.py:18 in load_module │ │ │ │ 17 │ │ with contextlib.redirect_stdout(io.StringIO()) as stdout: │ │ > 18 │ │ │ module_spec.loader.exec_module(module) │ │ 19 │ │ setup_logging() # reset since scripts can hijaack logging │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ C:\SDNEXT\extensions-builtin\a1111-sd-webui-lycoris\scripts\lyco_script.py:6 in │ │ │ │ 5 │ │ > 6 import l_network as network │ │ 7 import l_networks as networks │ │ │ │ C:\SDNEXT\extensions-builtin\a1111-sd-webui-lycoris\l_network.py:9 in │ │ │ │ 8 │ │ > 9 from modules import sd_models, cache, errors, hashes, shared │ │ 10 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ImportError: cannot import name 'cache' from 'modules' (unknown location)

EKKIV0K commented 8 months ago

@vladmandic and another one ....

14:48:11-634503 INFO Command line args: [] ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\launch.py:213 in │ │ │ │ 212 │ │ > 213 uv, instance = start_server(immediate=True, server=None) │ │ 214 while True: │ │ │ │ C:\SDNEXT\launch.py:147 in start_server │ │ │ │ 146 get_custom_args() │ │ > 147 module_spec.loader.exec_module(server) │ │ 148 uvicorn = None │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ C:\SDNEXT\webui.py:11 in │ │ │ │ 10 from threading import Thread │ │ > 11 import modules.loader │ │ 12 import torch # pylint: disable=wrong-import-order │ │ │ │ ... 3 frames hidden ... │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\routing.py:22 in │ │ │ │ 21 │ │ > 22 from fastapi import params │ │ 23 from fastapi._compat import ( │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\params.py:5 in │ │ │ │ 4 │ │ > 5 from fastapi.openapi.models import Example │ │ 6 from pydantic.fields import FieldInfo │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\openapi\models.py:4 in │ │ │ │ 3 │ │ > 4 from fastapi._compat import ( │ │ 5 PYDANTIC_V2, │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi_compat.py:20 in │ │ │ │ 19 │ │ > 20 from fastapi.exceptions import RequestErrorModel │ │ 21 from fastapi.types import IncEx, ModelNameMap, UnionType │ │ │ │ C:\SDNEXT\venv\lib\site-packages\fastapi\exceptions.py:6 in │ │ │ │ 5 from starlette.exceptions import WebSocketException as StarletteWebSocketException │ │ > 6 from typing_extensions import Annotated, Doc # type: ignore [attr-defined] │ │ 7 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ImportError: cannot import name 'Doc' from 'typing_extensions' (C:\SDNEXT\venv\lib\site-packages\typing_extensions.py) Appuyez sur une touche pour continuer...

EKKIV0K commented 8 months ago

@vladmandic (LAST UPDATE)

15:27:00-875148 WARNING Setup complete with errors: 1 15:27:00-876144 WARNING See log file for more details: C:\SDNEXT\sdnext.log 15:27:00-901191 INFO Extension preload: {'extensions-builtin': 0.02, 'extensions': 0.0} 15:27:00-904184 INFO Command line args: [] 15:27:11-937292 INFO Engine: backend=Backend.ORIGINAL compute=cuda mode=no_grad device=cuda 15:27:11-979055 INFO Device: device=NVIDIA GeForce RTX 2080 SUPER n=1 arch=compute_37 cap=(7, 5) cuda=11.8 cudnn=8700 driver=551.23 15:27:12-489872 ERROR Diffusers import error: version=0.16.1 error: cannot import name 'DPMSolverSDEScheduler' from 'diffusers' (C:\SDNEXT\venv\lib\site-packages\diffusers__init__.py) 15:27:12-605906 INFO Available VAEs: models\VAE items=0 15:27:12-616017 INFO Available models: models\Stable-diffusion items=1 time=0.01s 15:27:13-197243 ERROR codeformer: ModuleNotFoundError ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\modules\codeformer_model.py:31 in setup_model │ │ │ │ 30 │ │ from torchvision.transforms.functional import normalize │ │ > 31 │ │ from modules.codeformer.codeformer_arch import CodeFormer │ │ 32 │ │ from basicsr.utils import img2tensor, tensor2img │ │ │ │ C:\SDNEXT\modules\codeformer\codeformer_arch.py:10 in │ │ │ │ 9 │ │ > 10 from modules.codeformer.vqgan_arch import VQAutoEncoder, ResBlock │ │ 11 from basicsr.utils import get_root_logger │ │ │ │ C:\SDNEXT\modules\codeformer\vqgan_arch.py:13 in │ │ │ │ 12 import copy │ │ > 13 from basicsr.utils import get_root_logger │ │ 14 from basicsr.utils.registry import ARCH_REGISTRY │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr__init__.py:4 in │ │ │ │ 3 from .archs import │ │ > 4 from .data import │ │ 5 from .losses import │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data__init.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data__init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib\init.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py:11 in │ │ │ │ 10 │ │ > 11 from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels │ │ 12 from basicsr.data.transforms import augment │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\degradations.py:8 in │ │ │ │ 7 from scipy.stats import multivariate_normal │ │ > 8 from torchvision.transforms.functional_tensor import rgb_to_grayscale │ │ 9 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' 15:27:13-287740 ERROR gfpgan: ModuleNotFoundError ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\modules\gfpgan_model.py:76 in setup_model │ │ │ │ 75 │ try: │ │ > 76 │ │ import gfpgan │ │ 77 │ │ import facexlib │ │ │ │ C:\SDNEXT\venv\lib\site-packages\gfpgan\init__.py:3 in │ │ │ │ 2 from .archs import │ │ > 3 from .data import │ │ 4 from .models import │ │ │ │ C:\SDNEXT\venv\lib\site-packages\gfpgan\data__init__.py:10 in │ │ │ │ 9 # import all the dataset modules │ │ > 10 _dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in │ │ 11 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\gfpgan\data__init__.py:10 in │ │ │ │ 9 # import all the dataset modules │ │ > 10 _dataset_modules = [importlib.import_module(f'gfpgan.data.{file_name}') for file_name in │ │ 11 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ ... 2 frames hidden ... │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data__init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data__init__.py:22 in │ │ │ │ 21 # import all the dataset modules │ │ > 22 _dataset_modules = [importlib.import_module(f'basicsr.data.{file_name}') for file_name i │ │ 23 │ │ │ │ C:\Users\EKKIVOK\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py:126 in import_module │ │ │ │ 125 │ │ │ level += 1 │ │ > 126 │ return _bootstrap._gcd_import(name[level:], package, level) │ │ 127 │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\realesrgan_dataset.py:11 in │ │ │ │ 10 │ │ > 11 from basicsr.data.degradations import circular_lowpass_kernel, random_mixed_kernels │ │ 12 from basicsr.data.transforms import augment │ │ │ │ C:\SDNEXT\venv\lib\site-packages\basicsr\data\degradations.py:8 in │ │ │ │ 7 from scipy.stats import multivariate_normal │ │ > 8 from torchvision.transforms.functional_tensor import rgb_to_grayscale │ │ 9 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' 15:27:13-389848 ERROR Module load: extensions-builtin\a1111-sd-webui-lycoris\scripts\lyco_script.py: ImportError ┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐ │ C:\SDNEXT\modules\script_loading.py:18 in load_module │ │ │ │ 17 │ │ with contextlib.redirect_stdout(io.StringIO()) as stdout: │ │ > 18 │ │ │ module_spec.loader.exec_module(module) │ │ 19 │ │ setup_logging() # reset since scripts can hijaack logging │ │ in exec_module:883 │ │ in _call_with_frames_removed:241 │ │ │ │ C:\SDNEXT\extensions-builtin\a1111-sd-webui-lycoris\scripts\lyco_script.py:6 in │ │ │ │ 5 │ │ > 6 import l_network as network │ │ 7 import l_networks as networks │ │ │ │ C:\SDNEXT\extensions-builtin\a1111-sd-webui-lycoris\l_network.py:9 in │ │ │ │ 8 │ │ > 9 from modules import sd_models, cache, errors, hashes, shared │ │ 10 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ImportError: cannot import name 'cache' from 'modules' (unknown location) 15:27:15-037244 INFO Extension: script='extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py' Using sqlite file: extensions-builtin\sd-webui-agent-scheduler\task_scheduler.sqlite3 15:27:15-355739 INFO Extension: script='extensions-builtin\sd-webui-controlnet\scripts\api.py' ControlNet preprocessor location: C:\SDNEXT\extensions-builtin\sd-webui-controlnet\annotator\downloads 15:27:15-715929 INFO Extension: script='extensions-builtin\sd-webui-controlnet\scripts\controlnet.py' Warning: ControlNet failed to load SGM - will use LDM instead. 15:27:15-730069 INFO Extension: script='extensions-builtin\sd-webui-controlnet\scripts\hook.py' Warning: ControlNet failed to load SGM - will use LDM instead. 15:27:16-067461 INFO Extension: script='extensions\a1111-sd-webui-tagcomplete\scripts\tag_autocomplete_helper.py' Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu. 15:27:17-328115 INFO Extension: script='extensions\adetailer\scripts!adetailer.py' [-] ADetailer initialized. version: 24.1.2, num models: 9 15:27:17-802871 INFO Extension: script='extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py' Creating custom formatter for non UTF-8 environments due to attribute 'encoding' of '_io._TextIOBase' objects is not writable 15:27:19-163451 INFO Extension: script='extensions\Stable-Diffusion-Webui-Civitai-Helper\scripts\civitai_helper.py' Civitai Helper: Get Custom Model Folder 15:27:19-311605 INFO Extensions time: 5.96s { clip-interrogator-ext=0.65s Lora=0.25s multidiffusion-upscaler-for-automatic1111=0.07s sd-extension-system-info=0.06s sd-webui-agent-scheduler=0.55s sd-webui-controlnet=0.70s stable-diffusion-webui-images-browser=0.12s a1111-sd-webui-tagcomplete=0.14s adetailer=1.26s sd-webui-aspect-ratio-helper=0.12s sd-webui-inpaint-anything=0.36s sd-webui-reactor=1.16s Stable-Diffusion-Webui-Civitai-Helper=0.20s StyleSelectorXL=0.06s ScuNET=0.06s } 15:27:19-550082 INFO Loading UI theme: name=gradio/base style=Dark 15:27:21-712678 ERROR Calling script: extensions\sd-webui-reactor\scripts\reactor_faceswap.py/ui: AttributeError ┌───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\modules\scripts.py:286 in wrap_call │ │ │ │ 285 │ try: │ │ > 286 │ │ res = func(*args, kwargs) │ │ 287 │ │ return res │ │ │ │ C:\SDNEXT\extensions\sd-webui-reactor\scripts\reactor_faceswap.py:44 in ui │ │ │ │ 43 │ def ui(self, is_img2img): │ │ > 44 │ │ with ui_components.InputAccordion(False, label=f"{app_title}") as enable: │ │ 45 │ │ # with gr.Accordion(f"{app_title}", open=False): │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' 15:27:22-260572 ERROR Calling script: extensions\sd-webui-reactor\scripts\reactor_faceswap.py/ui: AttributeError ┌───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\modules\scripts.py:286 in wrap_call │ │ │ │ 285 │ try: │ │ > 286 │ │ res = func(*args, *kwargs) │ │ 287 │ │ return res │ │ │ │ C:\SDNEXT\extensions\sd-webui-reactor\scripts\reactor_faceswap.py:44 in ui │ │ │ │ 43 │ def ui(self, is_img2img): │ │ > 44 │ │ with ui_components.InputAccordion(False, label=f"{app_title}") as enable: │ │ 45 │ │ # with gr.Accordion(f"{app_title}", open=False): │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' 15:27:22-320858 ERROR calling extensions\sd-webui-reactor\scripts\reactor_faceswap.py/ui: AttributeError ┌───────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\modules\scripts_postprocessing.py:42 in wrap_call │ │ │ │ 41 │ try: │ │ > 42 │ │ res = func(args, kwargs) │ │ 43 │ │ return res │ │ │ │ C:\SDNEXT\extensions\sd-webui-reactor\scripts\reactor_faceswap.py:458 in ui │ │ │ │ 457 │ def ui(self): │ │ > 458 │ │ with ui_components.InputAccordion(False, label=f"{app_title}") as enable: │ │ 459 │ │ # with gr.Accordion(f"{app_title}", open=False): │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ AttributeError: module 'modules.ui_components' has no attribute 'InputAccordion' ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ C:\SDNEXT\launch.py:213 in │ │ │ │ 212 │ │ > 213 uv, instance = start_server(immediate=True, server=None) │ │ 214 while True: │ │ │ │ C:\SDNEXT\launch.py:156 in start_server │ │ │ │ 155 else: │ │ > 156 uvicorn = server.webui(restart=not immediate) │ │ 157 if args.profile: │ │ │ │ C:\SDNEXT\webui.py:305 in webui │ │ │ │ 304 start_common() │ │ > 305 start_ui() │ │ 306 modules.sd_models.write_metadata() │ │ │ │ C:\SDNEXT\webui.py:226 in start_ui │ │ │ │ 225 timer.startup.record("before-ui") │ │ > 226 shared.demo = modules.ui.create_ui(timer.startup) │ │ 227 timer.startup.record("ui") │ │ │ │ C:\SDNEXT\modules\ui.py:894 in create_ui │ │ │ │ 893 with gr.Blocks(analytics_enabled=False) as extras_interface: │ │ > 894 ui_postprocessing.create_ui() │ │ 895 timer.startup.record("ui-extras") │ │ │ │ C:\SDNEXT\modules\ui_postprocessing.py:35 in create_ui │ │ │ │ 34 buttons = parameters_copypaste.create_buttons(["txt2img", "img2img", "in │ │ > 35 script_inputs = scripts.scripts_postproc.setup_ui() │ │ 36 with gr.Column(): │ │ │ │ C:\SDNEXT\modules\scripts_postprocessing.py:92 in setup_ui │ │ │ │ 91 with gr.Row() as group: │ │ > 92 self.create_script_ui(script, inputs) │ │ 93 script.group = group │ │ │ │ C:\SDNEXT\modules\scripts_postprocessing.py:68 in create_script_ui │ │ │ │ 67 script.controls = wrap_call(script.ui, script.filename, "ui") │ │ > 68 for control in script.controls.values(): │ │ 69 control.custom_script_source = os.path.basename(script.filename) │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ AttributeError: 'NoneType' object has no attribute 'values' Appuyez sur une touche pour continuer...