aigc-apps / sd-webui-EasyPhoto

📷 EasyPhoto | Your Smart AI Photo Generator.
Apache License 2.0
4.98k stars 399 forks source link

[Bug]: general bug in SD.NEXT extenetion dont start #403

Open kalle07 opened 8 months ago

kalle07 commented 8 months ago

Is there an existing issue for this?

Is EasyPhoto the latest version?

What happened?

error while start

Steps to reproduce the problem

-

What should have happened?

-

Commit where the problem happens

while the server sarts

What browsers do you use to access the UI ?

No response

Command Line Arguments

-

List of enabled extensions

-

Console logs

12:56:40-980212 ERROR    Module load: extensions\sd-webui-EasyPhoto\scripts\api.py: ImportError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ E:\automatic\modules\script_loading.py:29 in load_module                                                            │
│                                                                                                                     │
│   28 │   │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                      │
│ > 29 │   │   │   │   │   module_spec.loader.exec_module(module)                                                     │
│   30 │   │   │   setup_logging() # reset since scripts can hijaack logging                                          │
│ in exec_module:883                                                                                                  │
│ in _call_with_frames_removed:241                                                                                    │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\api.py:11 in <module>                                            │
│                                                                                                                     │
│    10 from modules.api import api                                                                                   │
│ >  11 from scripts.easyphoto_infer import easyphoto_infer_forward, easyphoto_video_infer_forward                    │
│    12 from scripts.easyphoto_train import easyphoto_train_forward                                                   │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py:58 in <module>                                │
│                                                                                                                     │
│     57 )                                                                                                            │
│ >   58 from scripts.sdwebui import (                                                                                │
│     59 │   get_checkpoint_type,                                                                                     │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py:14 in <module>                                        │
│                                                                                                                     │
│    13 import numpy as np                                                                                            │
│ >  14 from modules import cache, errors, processing, sd_hijack, sd_models, sd_vae, shared                           │
│    15 from modules.paths import models_path                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ImportError: cannot import name 'cache' from 'modules' (unknown location)
12:56:41-009875 ERROR    Module load: extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py: ImportError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ E:\automatic\modules\script_loading.py:29 in load_module                                                            │
│                                                                                                                     │
│   28 │   │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                      │
│ > 29 │   │   │   │   │   module_spec.loader.exec_module(module)                                                     │
│   30 │   │   │   setup_logging() # reset since scripts can hijaack logging                                          │
│ in exec_module:883                                                                                                  │
│ in _call_with_frames_removed:241                                                                                    │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py:58 in <module>                                │
│                                                                                                                     │
│     57 )                                                                                                            │
│ >   58 from scripts.sdwebui import (                                                                                │
│     59 │   get_checkpoint_type,                                                                                     │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py:14 in <module>                                        │
│                                                                                                                     │
│    13 import numpy as np                                                                                            │
│ >  14 from modules import cache, errors, processing, sd_hijack, sd_models, sd_vae, shared                           │
│    15 from modules.paths import models_path                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ImportError: cannot import name 'cache' from 'modules' (unknown location)
12:56:41-044878 ERROR    Module load: extensions\sd-webui-EasyPhoto\scripts\easyphoto_train.py: ImportError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ E:\automatic\modules\script_loading.py:29 in load_module                                                            │
│                                                                                                                     │
│   28 │   │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                      │
│ > 29 │   │   │   │   │   module_spec.loader.exec_module(module)                                                     │
│   30 │   │   │   setup_logging() # reset since scripts can hijaack logging                                          │
│ in exec_module:883                                                                                                  │
│ in _call_with_frames_removed:241                                                                                    │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_train.py:9 in <module>                                 │
│                                                                                                                     │
│     8                                                                                                               │
│ >   9 from modules.sd_models_config import config_default, config_sdxl                                              │
│    10 from PIL import Image, ImageOps                                                                               │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ImportError: cannot import name 'config_sdxl' from 'modules.sd_models_config' (E:\automatic\modules\sd_models_config.py)
12:56:41-064936 ERROR    Module load: extensions\sd-webui-EasyPhoto\scripts\easyphoto_tryon_infer.py: ImportError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ E:\automatic\modules\script_loading.py:29 in load_module                                                            │
│                                                                                                                     │
│   28 │   │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                      │
│ > 29 │   │   │   │   │   module_spec.loader.exec_module(module)                                                     │
│   30 │   │   │   setup_logging() # reset since scripts can hijaack logging                                          │
│ in exec_module:883                                                                                                  │
│ in _call_with_frames_removed:241                                                                                    │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_tryon_infer.py:26 in <module>                          │
│                                                                                                                     │
│    25 )                                                                                                             │
│ >  26 from scripts.easyphoto_infer import inpaint                                                                   │
│    27 from scripts.easyphoto_utils import (                                                                         │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py:58 in <module>                                │
│                                                                                                                     │
│     57 )                                                                                                            │
│ >   58 from scripts.sdwebui import (                                                                                │
│     59 │   get_checkpoint_type,                                                                                     │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py:14 in <module>                                        │
│                                                                                                                     │
│    13 import numpy as np                                                                                            │
│ >  14 from modules import cache, errors, processing, sd_hijack, sd_models, sd_vae, shared                           │
│    15 from modules.paths import models_path                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ImportError: cannot import name 'cache' from 'modules' (unknown location)
12:56:41-099683 ERROR    Module load: extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py: ImportError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ E:\automatic\modules\script_loading.py:29 in load_module                                                            │
│                                                                                                                     │
│   28 │   │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                      │
│ > 29 │   │   │   │   │   module_spec.loader.exec_module(module)                                                     │
│   30 │   │   │   setup_logging() # reset since scripts can hijaack logging                                          │
│ in exec_module:883                                                                                                  │
│ in _call_with_frames_removed:241                                                                                    │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:22 in <module>                                   │
│                                                                                                                     │
│     21 )                                                                                                            │
│ >   22 from scripts.easyphoto_infer import easyphoto_infer_forward, easyphoto_video_infer_forward                   │
│     23 from scripts.easyphoto_train import easyphoto_train_forward                                                  │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py:58 in <module>                                │
│                                                                                                                     │
│     57 )                                                                                                            │
│ >   58 from scripts.sdwebui import (                                                                                │
│     59 │   get_checkpoint_type,                                                                                     │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py:14 in <module>                                        │
│                                                                                                                     │
│    13 import numpy as np                                                                                            │
│ >  14 from modules import cache, errors, processing, sd_hijack, sd_models, sd_vae, shared                           │
│    15 from modules.paths import models_path                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ImportError: cannot import name 'cache' from 'modules' (unknown location)
12:56:41-139720 ERROR    Module load: extensions\sd-webui-EasyPhoto\scripts\sdwebui.py: ImportError
┌───────────────────────────────────────── Traceback (most recent call last) ─────────────────────────────────────────┐
│ E:\automatic\modules\script_loading.py:29 in load_module                                                            │
│                                                                                                                     │
│   28 │   │   │   │   with contextlib.redirect_stdout(io.StringIO()) as stdout:                                      │
│ > 29 │   │   │   │   │   module_spec.loader.exec_module(module)                                                     │
│   30 │   │   │   setup_logging() # reset since scripts can hijaack logging                                          │
│ in exec_module:883                                                                                                  │
│ in _call_with_frames_removed:241                                                                                    │
│                                                                                                                     │
│ E:\automatic\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py:14 in <module>                                        │
│                                                                                                                     │
│    13 import numpy as np                                                                                            │
│ >  14 from modules import cache, errors, processing, sd_hijack, sd_models, sd_vae, shared                           │
│    15 from modules.paths import models_path                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ImportError: cannot import name 'cache' from 'modules' (unknown location)

Additional information

No response