songweige / sd-webui-rich-text

119 stars 2 forks source link

SD1.6 error is No module named 'diffusers.models.activations' i have excute pip install pip install diffusers==0.18.2 #6

Open kkget opened 1 year ago

kkget commented 1 year ago

image

thejohnd0e commented 1 year ago

Same

songweige commented 1 year ago

I guess this is a specific issue when the extension is used in Windows. Unfortunately, it is a bit hard for me to debug it as I don't have the laptop with the OS. Could you play around with different versions of diffusers, say [0.20.0](https://github.com/huggingface/diffusers/tree/v0.20.0), to see if it can fix the issue?

matrix4767 commented 1 year ago

Neither 0.18.2 or 0.20.0 worked for me.

songweige commented 1 year ago

Thanks for checking! I have incorporated this file in the extension. Could you update the extension and see if it fixes your problem?

matrix4767 commented 1 year ago

I see the new update has installed a newer mediapipe version, but now it gives a different error: *** Error loading script: rich_text_on_tab.py Traceback (most recent call last): File "G:\stable-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "G:\stable-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\rich_text_on_tab.py", line 17, in from scripts.models.region_diffusion import RegionDiffusion File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\models\region_diffusion.py", line 8, in from scripts.models.unet_2d_condition import UNet2DConditionModel File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\models\unet_2d_condition.py", line 26, in from diffusers.models.embeddings import ( ImportError: cannot import name 'ImageHintTimeEmbedding' from 'diffusers.models.embeddings' (G:\stable-webui\venv\lib\site-packages\diffusers\models\embeddings.py)

songweige commented 1 year ago

Great, I also incorporated this file. Would you mind checking again? Thanks!

matrix4767 commented 1 year ago

Updated. Different error again: *** Error loading script: rich_text_on_tab.py Traceback (most recent call last): File "G:\stable-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "G:\stable-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\rich_text_on_tab.py", line 17, in from scripts.models.region_diffusion import RegionDiffusion File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\models\region_diffusion.py", line 8, in from scripts.models.unet_2d_condition import UNet2DConditionModel File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\models\unet_2d_condition.py", line 39, in from scripts.models.attention_processor import AttentionProcessor, AttnProcessor File "G:\stable-webui\extensions\sd-webui-rich-text\scripts\models\attention_processor.py", line 20, in from diffusers.utils import deprecate, logging, maybe_allow_in_graph ImportError: cannot import name 'maybe_allow_in_graph' from 'diffusers.utils' (G:\stable-webui\venv\lib\site-packages\diffusers\utils__init__.py)

songweige commented 1 year ago

I made a fix by incorporating the diffusers lib as part of the extension. Hope that this will end this kind of these missing function errors. Let me know if you still see the issue! Thanks!