aigc-apps / sd-webui-EasyPhoto

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

[Bug]MAC M2安装最新版本,重启报错,看不到插件 #423

Open fanger7823 opened 7 months ago

fanger7823 commented 7 months ago

Is there an existing issue for this?

Is EasyPhoto the latest version?

What happened?

我的是MAC Studio M2的CPU,是不支持M2吗?

Steps to reproduce the problem

插件无法显示

What should have happened?

报错

Commit where the problem happens

webui界面无显示不能使用

What browsers do you use to access the UI ?

No response

Command Line Arguments

*** Error loading script: api.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/api.py", line 11, in <module>
        from scripts.easyphoto_infer import easyphoto_infer_forward, easyphoto_video_infer_forward
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_infer.py", line 11, in <module>
        from modelscope.outputs import OutputKeys
    ModuleNotFoundError: No module named 'modelscope'

---
*** Error loading script: easyphoto_infer.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_infer.py", line 11, in <module>
        from modelscope.outputs import OutputKeys
    ModuleNotFoundError: No module named 'modelscope'

---
*** Error loading script: easyphoto_train.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_train.py", line 21, in <module>
        from scripts.easyphoto_utils import check_files_exists_and_download, check_id_valid, check_scene_valid, ep_logger, unload_models
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_utils/__init__.py", line 32, in <module>
        from .common_utils import (
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_utils/common_utils.py", line 17, in <module>
        from modelscope.utils.logger import get_logger as ms_get_logger
    ModuleNotFoundError: No module named 'modelscope'

---
*** Error loading script: easyphoto_tryon_infer.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_tryon_infer.py", line 16, in <module>
        from segment_anything import SamPredictor, sam_model_registry
    ModuleNotFoundError: No module named 'segment_anything'

---
*** Error loading script: easyphoto_ui.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py", line 22, in <module>
        from scripts.easyphoto_infer import easyphoto_infer_forward, easyphoto_video_infer_forward
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_infer.py", line 11, in <module>
        from modelscope.outputs import OutputKeys
    ModuleNotFoundError: No module named 'modelscope'

---
*** Error loading script: preprocess.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/preprocess.py", line 17, in <module>
        from modelscope.outputs import OutputKeys
    ModuleNotFoundError: No module named 'modelscope'

---
*** Error loading script: sdwebui.py
    Traceback (most recent call last):
      File "/Users/casa/stable-diffusion-webui/modules/scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/Users/casa/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/sdwebui.py", line 22, in <module>
        from scripts.easyphoto_utils import (
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_utils/__init__.py", line 32, in <module>
        from .common_utils import (
      File "/Users/casa/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_utils/common_utils.py", line 17, in <module>
        from modelscope.utils.logger import get_logger as ms_get_logger
    ModuleNotFoundError: No module named 'modelscope'

List of enabled extensions

Console logs

.

Additional information

.

mohand505 commented 7 months ago

MAC M1 It's also the same mistake

dhammavipassi commented 7 months ago

I have the same issue.

dhammavipassi commented 7 months ago

Provide the error message displayed in the terminal to claude3 and ask him to give a detailed solution. He has successfully helped me solve this problem. You can try it.

RockyFong commented 6 months ago

I have the same issue on my MBA M1. I also have the error message of "ModuleNotFoundError: No module named 'modelscope'"

I installed the module with "pip install modelscope", however it didn't solve the issue.

dhammavipassi commented 6 months ago

Send the error presented in the terminal to Gpt or claude, let ai analyze the cause of the error and ask him to give you a detailed solution.

gaoyangyiqiao commented 6 months ago

请问你是如何安装tensorflow-cpu的,我这里无法安装tensorflow-cpu,导致EasyPhoto无法安装

hpan commented 3 months ago

请问你是如何安装tensorflow-cpu的,我这里无法安装tensorflow-cpu,导致EasyPhoto无法安装

找到 install.py,将其中的 tensorflow-cpu 改为 tensorflow