aigc-apps / sd-webui-EasyPhoto

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

ImportError: cannot import name 'cache' from 'modules' (unknown location) #283

Open develop-productivity opened 1 year ago

develop-productivity commented 1 year ago

Hi,When I started webui.sh, I meet the fellowing error:

Animatediff is not Support when stable-diffusion webui is under v1.6.0. Animatediff import error detailed is follow: cannot import name 'create_binary_mask' from 'modules.processing' (/data/sydong/diffusion/stable-diffusion-webui/modules/processing.py)
Error loading script: easyphoto_ui.py
Traceback (most recent call last):
  File "/data/sydong/diffusion/stable-diffusion-webui/modules/scripts.py", line 263, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/data/sydong/diffusion/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/data/sydong/diffusion/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py", line 15, in <module>
    from scripts.easyphoto_infer import (easyphoto_infer_forward,
  File "/data/sydong/diffusion/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_infer.py", line 43, in <module>
    from scripts.sdwebui import (ControlNetUnit, get_checkpoint_type,
  File "/data/sydong/diffusion/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/sdwebui.py", line 12, in <module>
    from modules import (cache, errors, processing, scripts, sd_models,
ImportError: cannot import name 'cache' from 'modules' (unknown location)