deforum-art / sd-webui-deforum

Deforum extension for AUTOMATIC1111's Stable Diffusion webui
https://deforum.github.io
Other
2.67k stars 386 forks source link

[Bug]: Batch processing fails after first entry in list of configs #890

Closed tholonia closed 11 months ago

tholonia commented 11 months ago

Have you read the latest version of the FAQ?

Is there an existing issue for this?

Are you using the latest version of the Deforum extension?

What happened?

Running a batch process fails if there is more than one settings file in the batch. The batch processes the first entry fine, then crashes.

Steps to reproduce the problem

  1. Create two settings files for Deforum.
  2. Add them to that Deforum batch entry.
  3. Turn batch processing on.
  4. Press Generate.

What should have happened/how would you fix it?

All setting files should be processed.

Torch version

torch: 2.0.1+cu118

On which platform are you launching the webui with the extension?

Local PC setup (Linux)

Deforum settings

https://gist.github.com/tholonia/f613f379370065ac281b282829988c7a

Webui core settings

https://gist.github.com/tholonia/f613f379370065ac281b282829988c7a

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on jw user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Launching Web UI with arguments: --xformers --listen --enable-insecure-extension-access --opt-sdp-attention --no-half-vae
2023-09-20 23:47:04,256 - ControlNet - INFO - ControlNet v1.1.410
ControlNet preprocessor location: /home/jw/store/src/stable-diffusion-webui_v1.6.0/extensions/sd-webui-controlnet/annotator/downloads
2023-09-20 23:47:04,353 - ControlNet - INFO - ControlNet v1.1.410
Loading weights [8d0ce6c016] from /home/jw/store/src/stable-diffusion-webui_v1.6.0/models/Stable-diffusion/sd_xl_refiner_1.0_0.9vae.safetensors
LAB
*Deforum ControlNet support: enabled*
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 12.7s (prepare environment: 2.9s, import torch: 2.3s, import gradio: 0.7s, setup paths: 1.3s, initialize shared: 0.1s, other imports: 0.7s, load scripts: 0.9s, create ui: 1.9s, gradio launch: 1.7s).
Creating model from config: /home/jw/store/src/stable-diffusion-webui_v1.6.0/repositories/generative-models/configs/inference/sd_xl_refiner.yaml
Applying attention optimization: xformers... done.
Model loaded in 16.8s (load weights from disk: 13.5s, create model: 0.1s, apply weights to model: 1.5s, apply dtype to VAE: 0.2s, load textual inversion embeddings: 0.2s, calculate empty prompt: 1.3s).
started run_deforum
times_to_run: 2
Deforum extension for auto1111 webui
Git commit: f635a215
Starting job task(iiagd0h6sknqnpi)-0...
reading custom settings from /tmp/gradio/a82a863eae687ec2a0a5befd21bcef846192ae10/d1
namespace(W=512, H=512, show_info_on_ui=True, tiling=False, restore_faces=False, seed_resize_from_w=0, seed_resize_from_h=0, seed=-1, sampler='Euler a', steps=11, batch_name='Deforum_{timestring}', seed_behavior='iter', seed_iter_N=1, use_init=False, strength=0.8, strength_0_no_init=True, init_image='https://deforum.github.io/a1/I1.png', init_image_box=None, use_mask=False, use_alpha_as_mask=False, mask_file='https://deforum.github.io/a1/M1.jpg', invert_mask=False, mask_contrast_adjust=1.0, mask_brightness_adjust=1.0, overlay_mask=True, mask_overlay_blur=4, fill=1, full_res_mask=True, full_res_mask_padding=4, reroll_blank_frames='ignore', reroll_patience=10.0, motion_preview_mode=False) namespace(animation_mode='2D', max_frames=20, border='replicate', angle='0: (0)', zoom='0: (1.0025+0.002*sin(1.25*3.14*t/30))', translation_x='0: (0)', translation_y='0: (0)', translation_z='0: (1.75)', transform_center_x='0: (0.5)', transform_center_y='0: (0.5)', rotation_3d_x='0: (0)', rotation_3d_y='0: (0)', rotation_3d_z='0: (0)', enable_perspective_flip=False, perspective_flip_theta='0: (0)', perspective_flip_phi='0: (0)', perspective_flip_gamma='0: (0)', perspective_flip_fv='0: (53)', noise_schedule='0: (0.065)', strength_schedule='0: (0.65)', contrast_schedule='0: (1.0)', cfg_scale_schedule='0: (7)', enable_steps_scheduling=False, steps_schedule='0: (25)', fov_schedule='0: (70)', aspect_ratio_schedule='0: (1)', aspect_ratio_use_old_formula=False, near_schedule='0: (200)', far_schedule='0: (10000)', seed_schedule='0:(s), 1:(-1), "max_f-2":(-1), "max_f-1":(s)', pix2pix_img_cfg_scale_schedule='0:(1.5)', enable_subseed_scheduling=False, subseed_schedule='0: (1)', subseed_strength_schedule='0: (0)', enable_sampler_scheduling=False, sampler_schedule='0: ("Euler a")', use_noise_mask=False, mask_schedule='0: ("{video_mask}")', noise_mask_schedule='0: ("{video_mask}")', enable_checkpoint_scheduling=False, checkpoint_schedule='0: ("model1.ckpt"), 100: ("model2.safetensors")', enable_clipskip_scheduling=False, clipskip_schedule='0: (2)', enable_noise_multiplier_scheduling=True, noise_multiplier_schedule='0: (1.05)', resume_from_timestring=False, resume_timestring='20230129210106', enable_ddim_eta_scheduling=False, ddim_eta_schedule='0: (0)', enable_ancestral_eta_scheduling=False, ancestral_eta_schedule='0: (1)', amount_schedule='0: (0.1)', kernel_schedule='0: (5)', sigma_schedule='0: (1)', threshold_schedule='0: (0)', color_coherence='LAB', color_coherence_image_path='', color_coherence_video_every_N_frames=1, color_force_grayscale=False, legacy_colormatch=False, diffusion_cadence=1, optical_flow_cadence='None', cadence_flow_factor_schedule='0: (1)', optical_flow_redo_generation='None', redo_flow_factor_schedule='0: (1)', diffusion_redo='0', noise_type='perlin', perlin_w=8, perlin_h=8, perlin_octaves=4, perlin_persistence=0.5, use_depth_warping=True, depth_algorithm='Midas-3-Hybrid', midas_weight=0.2, padding_mode='border', sampling_mode='bicubic', save_depth_maps=False, video_init_path='https://deforum.github.io/a1/V1.mp4', extract_nth_frame=1, extract_from_frame=0, extract_to_frame=-1, overwrite_extracted_frames=False, use_mask_video=False, video_mask_path='https://deforum.github.io/a1/VM1.mp4', hybrid_comp_alpha_schedule='0:(0.5)', hybrid_comp_mask_blend_alpha_schedule='0:(0.5)', hybrid_comp_mask_contrast_schedule='0:(1)', hybrid_comp_mask_auto_contrast_cutoff_high_schedule='0:(100)', hybrid_comp_mask_auto_contrast_cutoff_low_schedule='0:(0)', hybrid_flow_factor_schedule='0:(1)', hybrid_generate_inputframes=False, hybrid_generate_human_masks='None', hybrid_use_first_frame_as_init_image=True, hybrid_motion='None', hybrid_motion_use_prev_img=False, hybrid_flow_consistency=False, hybrid_consistency_blur=2, hybrid_flow_method='RAFT', hybrid_composite='None', hybrid_use_init_image=False, hybrid_comp_mask_type='None', hybrid_comp_mask_inverse=False, hybrid_comp_mask_equalize='None', hybrid_comp_mask_auto_contrast=False, hybrid_comp_save_extra_frames=False) namespace(parseq_manifest='', parseq_use_deltas=True) namespace(use_looper=False, init_images='{\n    "0": "https://deforum.github.io/a1/Gi1.png",\n    "max_f/4-5": "https://deforum.github.io/a1/Gi2.png",\n    "max_f/2-10": "https://deforum.github.io/a1/Gi3.png",\n    "3*max_f/4-15": "https://deforum.github.io/a1/Gi4.jpg",\n    "max_f-20": "https://deforum.github.io/a1/Gi1.png"\n}', image_strength_schedule='0:(0.75)', blendFactorMax='0:(0.35)', blendFactorSlope='0:(0.25)', tweening_frames_schedule='0:(20)', color_correction_factor='0:(0.075)')
Saving animation frames to:
/home/jw/store/src/sdc/outputs/img2img-images/Deforum_20230920234743
Animation frame: 0/20  
Seed: 2742221678
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
Not using an init image (doing pure txt2img)
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│   0   │  0  │1.0025│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 11/11 [00:01<00:00,  6.23it/s]
Animation frame: 1/20  █▎        | 11/87 [00:00<00:05, 13.69it/s]
Seed: 2742221679
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0028│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.71it/s]
Animation frame: 2/20  █▋        | 15/87 [00:01<00:11,  6.36it/s]
Seed: 2742221680
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬─────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼─────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.003│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴─────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.74it/s]
Animation frame: 3/20  ██▏       | 19/87 [00:02<00:10,  6.47it/s]
Seed: 2742221681
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0033│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 11.54it/s]
Animation frame: 4/20  ██▌       | 22/87 [00:03<00:10,  5.99it/s]
Seed: 2742221682
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0035│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.27it/s]
Animation frame: 5/20  ██▉       | 26/87 [00:03<00:09,  6.15it/s]
Seed: 2742221683
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0037│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 11.44it/s]
Animation frame: 6/20  ███▍      | 30/87 [00:04<00:09,  6.08it/s]
Seed: 2742221684
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0039│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.51it/s]
Animation frame: 7/20  ███▉      | 34/87 [00:05<00:08,  6.14it/s]
Seed: 2742221685
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0041│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.99it/s]
Animation frame: 8/20  ████▎     | 38/87 [00:05<00:07,  6.43it/s]
Seed: 2742221686
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0042│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 13.02it/s]
Animation frame: 9/20  ████▊     | 42/87 [00:06<00:06,  6.61it/s]
Seed: 2742221687
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0043│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.91it/s]
Animation frame: 10/20  ████▎    | 46/87 [00:07<00:06,  6.63it/s]
Seed: 2742221688
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0044│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.89it/s]
Animation frame: 11/20  ████▋    | 50/87 [00:07<00:05,  6.60it/s]
Seed: 2742221689
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0045│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.89it/s]
Animation frame: 12/20  █████▏   | 54/87 [00:08<00:05,  6.60it/s]
Seed: 2742221690
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0045│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.95it/s]
Animation frame: 13/20  █████▋   | 58/87 [00:09<00:04,  6.62it/s]
Seed: 2742221691
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0045│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 13.00it/s]
Animation frame: 14/20  ██████▏  | 62/87 [00:09<00:03,  6.64it/s]
Seed: 2742221692
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0044│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.74it/s]
Animation frame: 15/20  ██████▌  | 66/87 [00:10<00:03,  6.59it/s]
Seed: 2742221693
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0043│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.63it/s]
Animation frame: 16/20  ███████  | 70/87 [00:11<00:02,  6.61it/s]
Seed: 2742221694
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0042│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 13.14it/s]
Animation frame: 17/20  ███████▌ | 74/87 [00:11<00:01,  6.62it/s]
Seed: 2742221695
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0041│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 13.06it/s]
Animation frame: 18/20  ███████▉ | 78/87 [00:12<00:01,  6.66it/s]
Seed: 2742221696
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0039│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 12.92it/s]
Animation frame: 19/20  ████████▍| 82/87 [00:13<00:00,  6.68it/s]
Seed: 2742221697
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 11  │7.0│ 0.35  │  0  │1.0037│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:00<00:00, 13.01it/s]
Deforum progress: 100%|██████████| 87/87 [00:14<00:00,  6.13it/s]
Got a request to stitch frames to video using FFmpeg.
Frames:
/home/jw/store/src/sdc/outputs/img2img-images/Deforum_20230920234743/20230920234743_%09d.png
To Video:
/home/jw/store/src/sdc/outputs/img2img-images/Deforum_20230920234743/20230920234743.mp4
Stitching *video*...
Video stitching done in 0.26 seconds!
*** Error completing request
*** Arguments: ('task(iiagd0h6sknqnpi)', {}, True, [<tempfile._TemporaryFileWrapper object at 0x7fa20b000850>, <tempfile._TemporaryFileWrapper object at 0x7fa20b000bb0>], '2D', 120, 'replicate', '0: (0)', '0: (1.0025+0.002*sin(1.25*3.14*t/30))', '0: (0)', '0: (0)', '0: (1.75)', '0: (0.5)', '0: (0.5)', '0: (0)', '0: (0)', '0: (0)', False, '0: (0)', '0: (0)', '0: (0)', '0: (53)', '0: (0.065)', '0: (0.65)', '0: (1.0)', '0: (7)', False, '0: (25)', '0: (70)', '0: (1)', False, '0: (200)', '0: (10000)', '0:(s), 1:(-1), "max_f-2":(-1), "max_f-1":(s)', '0:(1.5)', False, '0: (1)', '0: (0)', False, '0: ("Euler a")', False, '0: ("{video_mask}")', '0: ("{video_mask}")', False, '0: ("model1.ckpt"), 100: ("model2.safetensors")', False, '0: (2)', True, '0: (1.05)', False, '20230129210106', False, '0: (0)', False, '0: (1)', '0: (0.1)', '0: (5)', '0: (1)', '0: (0)', 'LAB', '', 1, False, False, 1, 'None', '0: (1)', 'None', '0: (1)', '0', 'perlin', 8, 8, 4, 0.5, True, 'Midas-3-Hybrid', 0.2, 'border', 'bicubic', False, 'https://deforum.github.io/a1/V1.mp4', 1, 0, -1, False, False, 'https://deforum.github.io/a1/VM1.mp4', '0:(0.5)', '0:(0.5)', '0:(1)', '0:(100)', '0:(0)', '0:(1)', False, 'None', True, 'None', False, False, 2, 'RAFT', 'None', False, 'None', False, 'None', False, False, '{\n    "0": "tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus",\n    "30": "anthropomorphic clean cat, surrounded by fractals, epic angle and pose, symmetrical, 3d, depth of field",\n    "60": "a beautiful coconut --neg photo, realistic",\n    "90": "a beautiful durian, award winning photography"\n}\n    ', '', 'nsfw, nude', 512, 512, True, False, False, 0, 0, -1, 'Euler a', 25, 'Deforum_{timestring}', 'iter', 1, False, 0.8, True, 'https://deforum.github.io/a1/I1.png', None, False, False, 'https://deforum.github.io/a1/M1.jpg', False, 1.0, 1.0, True, 4, 1, True, 4, 'ignore', 10.0, False, False, 15, False, False, False, 'C:/SD/20230124234916_%09d.png', 'None', 'https://deforum.github.io/a1/A1.mp3', False, 'x2', 'realesr-animevideov3', True, False, 'None', 2, False, 2, True, False, '', True, False, '{\n    "0": "https://deforum.github.io/a1/Gi1.png",\n    "max_f/4-5": "https://deforum.github.io/a1/Gi2.png",\n    "max_f/2-10": "https://deforum.github.io/a1/Gi3.png",\n    "3*max_f/4-15": "https://deforum.github.io/a1/Gi4.jpg",\n    "max_f-20": "https://deforum.github.io/a1/Gi1.png"\n}', '0:(0.75)', '0:(0.35)', '0:(0.25)', '0:(20)', '0:(0.075)', True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False, True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False, True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False, True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False, True, '', '', False, False, False, 'none', 'None', '0:(1)', '0:(0.0)', '0:(1.0)', 64, 64, 64, 'Inner Fit (Scale to Fit)', 'Balanced', False) {}
    Traceback (most recent call last):
      File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/modules/call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
      File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/modules/call_queue.py", line 36, in f
        res = func(*args, **kwargs)
      File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/run_deforum.py", line 60, in run_deforum
        job_id = f"{args[0]}-{i}"
    TypeError: 'types.SimpleNamespace' object is not subscriptable

---
Traceback (most recent call last):
  File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/venv/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1297, in postprocess_data
    self.validate_outputs(fn_index, predictions)  # type: ignore
  File "/home/jw/store/src/stable-diffusion-webui_v1.6.0/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1272, in validate_outputs
    raise ValueError(
ValueError: An event handler (run_deforum) didn't receive enough output values (needed: 4, received: 3).
Wanted outputs:
    [gallery, textbox, textbox, html]
Received outputs:
    [None, "", "<div class='error'>TypeError: &#x27;types.SimpleNamespace&#x27; object is not subscriptable</div><div class='performance'><p class='time'>Time taken: <wbr><span class='measurement'>16.1 sec.</span></p><p class='vram'><abbr title='Active: peak amount of video memory used during generation (excluding cached data)'>A</abbr>: <span class='measurement'>6.76 GB</span>, <wbr><abbr title='Reserved: total amout of video memory allocated by the Torch library '>R</abbr>: <span class='measurement'>7.57 GB</span>, <wbr><abbr title='System: peak amout of video memory allocated by all running programs, out of total capacity'>Sys</abbr>: <span class='measurement'>7.9/11.7285 GB</span> (67.7%)</p></div>"]

Additional information

I tested this batch issue on 1.4.0, which worked successfully, but in 1.5.2, and 1.6.0, it failed. It is not clear if the issue is with Deforum or A1111. The error is thrown in Deforum because what is passed from A1111 is incompatible with Deforum, but no idea which side is "correct".

andyxr commented 11 months ago

I've found the issue and I think I have a fix.