TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.56k stars 1.31k forks source link

Animatediff cannot output GIFs, PNGs, or MP4s. #2781

Closed widecolor closed 8 months ago

widecolor commented 8 months ago

I'm encountering an issue while running on Google Colab. The Animatediff plugin isn't functioning properly; it only generates a single image. The error message is as follows. I would greatly appreciate any guidance or assistance you could provide. Thank you very much.

Error running before_process: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 776, in before_process script.before_process(p, script_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py", line 63, in before_process motion_module.inject(p.sd_model, params.model) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_mm.py", line 68, in inject self.load(model_name) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_mm.py", line 47, in load mm_state_dict = sd_models.read_state_dict(model_path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/sd_models.py", line 310, in read_state_dict pl_sd = torch.load(checkpoint_file, map_location=map_location or shared.weight_load_location) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/safe.py", line 108, in load return load_with_extra(filename, *args, extra_handler=global_extra_handler, *kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/safe.py", line 156, in load_with_extra return unsafe_torch_load(filename, args, kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1028, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1246, in _legacy_load magic_number = pickle_module.load(f, pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.


0% 0/26 [00:00<?, ?it/s]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 90, in animatediff_on_cfg_denoiser ad_params.text_cond = ad_params.prompt_scheduler.multi_cond(cfg_params.text_cond, prompt_closed_loop) AttributeError: 'NoneType' object has no attribute 'multi_cond'


4% 1/26 [00:01<00:39, 1.58s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


8% 2/26 [00:02<00:30, 1.27s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


12% 3/26 [00:03<00:27, 1.18s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


15% 4/26 [00:04<00:25, 1.14s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


19% 5/26 [00:05<00:23, 1.12s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


23% 6/26 [00:06<00:22, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


27% 7/26 [00:08<00:20, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


31% 8/26 [00:09<00:19, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


35% 9/26 [00:10<00:18, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


38% 10/26 [00:11<00:17, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


42% 11/26 [00:12<00:16, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


46% 12/26 [00:13<00:15, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


50% 13/26 [00:14<00:14, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


54% 14/26 [00:15<00:13, 1.12s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


58% 15/26 [00:16<00:12, 1.12s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


62% 16/26 [00:18<00:11, 1.12s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


65% 17/26 [00:19<00:10, 1.12s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


69% 18/26 [00:20<00:08, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


73% 19/26 [00:21<00:07, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


77% 20/26 [00:22<00:06, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


81% 21/26 [00:23<00:05, 1.11s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


85% 22/26 [00:24<00:04, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


88% 23/26 [00:25<00:03, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


92% 24/26 [00:26<00:02, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


96% 25/26 [00:27<00:01, 1.10s/it]*** Error executing callback cfg_denoiser_callback for /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_callbacks.py", line 230, in cfg_denoiser_callback c.callback(params) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff_infv2v.py", line 163, in animatediff_on_cfg_denoiser cfg_params.text_cond = ad_params.text_cond AttributeError: 'AnimateDiffProcess' object has no attribute 'text_cond'


100% 26/26 [00:29<00:00, 1.12s/it] Error running postprocess_batch_list: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 832, in postprocess_batch_list script.postprocess_batch_list(p, pp, script_args, kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py", line 80, in postprocess_batch_list params.prompt_scheduler.save_infotext_img(p) AttributeError: 'NoneType' object has no attribute 'save_infotext_img'


** Error running postprocess: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 816, in postprocess script.postprocess(p, processed, script_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-animatediff/scripts/animatediff.py", line 90, in postprocess params.prompt_scheduler.save_infotext_txt(res) AttributeError: 'NoneType' object has no attribute 'save_infotext_txt'

Dnozz commented 8 months ago

same.. vanilla install, used this tutorial.

widecolor commented 8 months ago

same.. vanilla install, used this tutorial.

I tried completely removing automatic1111 and reinstalling it. Then, I reinstalled animatediff. I updated xformers using !pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu121, and now everything works fine.