sd-webui-rich-text icon indicating copy to clipboard operation
sd-webui-rich-text copied to clipboard

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

Open kkget opened this issue 1 year ago • 8 comments

image

kkget avatar Oct 01 '23 09:10 kkget

Same

thejohnd0e avatar Oct 03 '23 04:10 thejohnd0e

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?

songweige avatar Oct 03 '23 08:10 songweige

Neither 0.18.2 or 0.20.0 worked for me.

matrix4767 avatar Oct 04 '23 06:10 matrix4767

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

songweige avatar Oct 04 '23 10:10 songweige

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)

matrix4767 avatar Oct 04 '23 12:10 matrix4767

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

songweige avatar Oct 04 '23 21:10 songweige

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)

matrix4767 avatar Oct 05 '23 05:10 matrix4767

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!

songweige avatar Oct 05 '23 16:10 songweige