Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!!!!!You MUST do this if you see CUDA error for >=v2.0.0-a!!!!! (Prev: The way to resolve generating 2 separate GIFs) #83

Closed
continue-revolution opened this issue Sep 12, 2023 · 9 comments
Assignees

Comments

@continue-revolution
Copy link
Owner

continue-revolution commented Sep 12, 2023

You should enable Pad prompt/negative prompt to be same length and Batch cond/uncond and click Apply settings in Settings.

For people who are interested in the backend: the reason is that when the cond and uncond have different shape, WebUI will by-default not batch them because it can't, unless you enable padding.

@jasoncow007
Copy link

jasoncow007 commented Sep 13, 2023

same issue,error report as bellow

2023-09-13 15:58:31,169 - AnimateDiff - INFO - Loading motion module mm_sd_v15_v2.ckpt from D:\sd-webui-aki-v4\extensions\sd-webui-animatediff\model\mm_sd_v15_v2.ckpt
*** Error running before_process: D:\sd-webui-aki-v4\extensions\sd-webui-animatediff\scripts\animatediff.py
Traceback (most recent call last):
File "D:\sd-webui-aki-v4\modules\scripts.py", line 611, in before_process
script.before_process(p, *script_args)
File "D:\sd-webui-aki-v4\extensions\sd-webui-animatediff\scripts\animatediff.py", line 199, in before_process
self.inject_motion_modules(p, model)
File "D:\sd-webui-aki-v4\extensions\sd-webui-animatediff\scripts\animatediff.py", line 130, in inject_motion_modules
missed_keys = AnimateDiffScript.motion_module.load_state_dict(mm_state_dict)
File "D:\sd-webui-aki-v4\py310\lib\site-packages\torch\nn\modules\module.py", line 2041, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for MotionWrapper:
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
Unexpected key(s) in state_dict: "mid_block.motion_modules.0.temporal_transformer.norm.weight", "mid_block.motion_modules.0.temporal_transformer.norm.bias", "mid_block.motion_modules.0.temporal_transformer.proj_in.weight",

@continue-revolution
Copy link
Owner Author

@jasoncow007 the extension use hash to check if it is using v2 model. Your download is most likely incomplete. Also, what you are talking about is not related to this issue.

@AbstractEyes
Copy link

Enabling padding fixed my problem as well.

@Symbiomatrix
Copy link

Symbiomatrix commented Sep 16, 2023

@continue-revolution Perhaps you should pin this issue so it's more noticeable?

@continue-revolution continue-revolution pinned this issue Sep 16, 2023
@Jaggelicious
Copy link

So before enabling Pad prompt/negative prompt to be same length
I had this issue where 2 different gifs in one go but they look great.
AFTER I enabled Pad prompt/negative prompt to be same length I have just a garbled mess and the frames arent at all smooth, it's just different pictures without any interpolation.

Am I missing something?

@continue-revolution continue-revolution self-assigned this Sep 21, 2023
@Jaggelicious
Copy link

Untitled
As an example.

@AbyssBadger0
Copy link

You should enable Pad prompt/negative prompt to be same length and Batch cond/uncond and click Apply settings in Settings.

For people who are interested in the backend: the reason is that when the cond and uncond have different shape, WebUI will by-default not batch them because it can't, unless you enable padding.

Can't find the setting option? Look here, it's in the Optimizations tab

@Nerual-Dreming
Copy link

#You should enable Pad prompt/negative prompt to be same length and Batch cond/uncond and click Apply settings in Settings.

Yes, it work for me too.

@Sostay
Copy link

Sostay commented Sep 27, 2023

So before enabling Pad prompt/negative prompt to be same length 所以在启用 Pad prompt/negative prompt to be same length 之前 I had this issue where 2 different gifs in one go but they look great. 我有这个问题,其中2个不同的gif在一个去,但他们看起来很棒。 AFTER I enabled Pad prompt/negative prompt to be same length I have just a garbled mess and the frames arent at all smooth, it's just different pictures without any interpolation. 在我启用 Pad prompt/negative prompt to be same length 后,我只是一个乱码混乱和帧不平滑,它只是不同的图片没有任何插值。

Am I missing something?我是不是漏了什么?

Enable Pad prompt/negative prompt to be same length and Batch cond/uncond
where is the settings?i cant find it anywhre,who can tell me?

@continue-revolution continue-revolution changed the title From the author: the way to resolve generating 2 separate GIFs The way to resolve generating 2 separate GIFs Oct 11, 2023
@continue-revolution continue-revolution changed the title The way to resolve generating 2 separate GIFs !!!!!You MUST do this if you see CUDA error for >=v2.0.0-a!!!!! (Prev: The way to resolve generating 2 separate GIFs) Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants