Open trangvu9 opened 1 year ago
I have no Mac so maybe someone who has Mac can help OP
I encountered the same issue. I found a temporary workaround by reducing both the Width and Height. I also disabled the stable diffusion setting "Upcast cross attention layer to float32". The generated videos now appear as moving noise. Has anyone else tried this approach, and if so, did you encounter similar results?
same issue for me
same issue here on M3 pro, reducing the width/height can mitigate the issue, but encounter another issue:
*** Arguments: ('task(icby674mdg6hs6j)', 'Elon Musk is dancing', '', [], 20, 'DPM++ 2M Karras', 1, 1, 7, 64, 64, False, 0.7, 2, 'Latent', 0, 0, 0, 'Use same checkpoint', 'Use same sampler', '', '', [], <gradio.routes.Request object at 0x2f673ac90>, 0, False, '', 0.8, -1, False, -1, 0, 0, 0, <scripts.animatediff_ui.AnimateDiffProcess object at 0x2f6719090>, UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode='Crop and Resize', low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode='Balanced', save_detected_map=True), UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode='Crop and Resize', low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode='Balanced', save_detected_map=True), UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode='Crop and Resize', low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode='Balanced', save_detected_map=True), False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False, None, None, False, None, None, False, None, None, False, 50) {}
Traceback (most recent call last):
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/call_queue.py", line 36, in f
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/txt2img.py", line 55, in txt2img
processed = processing.process_images(p)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/processing.py", line 732, in process_images
res = process_images_inner(p)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_cn.py", line 118, in hacked_processing_process_images_hijack
return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/processing.py", line 875, in process_images_inner
x_samples_ddim = decode_latent_batch(p.sd_model, samples_ddim, target_device=devices.cpu, check_for_nans=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/processing.py", line 601, in decode_latent_batch
raise e
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/processing.py", line 598, in decode_latent_batch
devices.test_for_nans(sample, "vae")
File "/Users/shuangqili/Documents/apps/stable-diffusion-webui/modules/devices.py", line 136, in test_for_nans
raise NansException(message)
modules.devices.NansException: A tensor with all NaNs was produced in VAE. Use --disable-nan-check commandline argument to disable this check.
Same issue.
Same issue here.
I have this problem as well.
I've installed torch_nightly, and now I can generate animations. I installed torch_nightly by modifying webui-user.sh. You can refer to the content of webui-user.sh at https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/7453.
Same issue here.
same issue!
Is there an existing issue for this?
Have you read FAQ on README?
What happened?
When enabling AnnimateDiff, this error shows:
Happens in Mac M2. Python 3.10
Steps to reproduce the problem
What should have happened?
image should be generated and no error shown.
Commit where the problem happens
webui: 1.6.0 extension:
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
Console logs
Additional information
No response