continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.05k stars 253 forks source link

[Bug]: AnimateDiff does not function with the current version of a1111? #462

Closed o-l-l-i closed 6 months ago

o-l-l-i commented 6 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

After updating a1111 to the latest version yesterday, nothing seems to work in AnimatedDiff. Before this, I managed to get it to function with and without ControlNet, and generally just get it to render something.

But now, when I toggle it on, during generation it will print out a variety of errors, and all of them always end to CUDA errors:

CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Everything else seems to be functioning OK with WebUI.

Steps to reproduce the problem

  1. Go to txt2img
  2. Create a prompt
  3. Activate AnimateDiff, configure basic settings
  4. Generate

What should have happened?

AnimateDiff renders correctly, and causes no errors.

Commit where the problem happens

webui: v1.8.0 b76cc78ad9 extension: master a3905000 2024-03-10 11:27:58 controlnet: main aa2aa812 2024-03-06 04:52:19

What browsers do you use to access the UI ?

Google Chrome, Brave

Command Line Arguments

--administrator --xformers --no-half-vae
And custom paths for:
--ckpt-dir
--embeddings-dir
--lora-dir
--vae-dir
--hypernetwork-dir
--lyco-dir
--controlnet-dir

Console logs

(I removed the beginning of this)

RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Additional information

I tried different models, both SD 1.5-based, and SDXL. Without and with ControlNet, and any extras. Just a fresh boot of WebUI and activating AnimateDiff with the default settings causes this error.

o-l-l-i commented 6 months ago

I tried to debug a bit more, to see what might cause this. I seem to very easily end up to a situation where this error starts to appear:

For example, I just tried this:

Then I tried to see where the settings/data are stored that prevents this from getting restored back to a working order.

What did not work:

What worked:

After a rebuild of the venv a1111 booted successfully, and AnimateDiff worked again.

But it would be good to figure out this, since this extension is one of the few that repeatedly breaks down, out of 20+ I quite often use.

continue-revolution commented 6 months ago

If you install adetailer but do not apply it to your generation, the generation should be fine. If you apply adetailer and animatediff at the same time, it seems that there is some unknown error.

If that's the case, I will close this issue and track this problem via #446 . Otherwise, feel free to re-open this issue.