Skip to content

[Bug]: resume timestring is not counting the frames #1

@OpsinM

Description

@OpsinM

Have you read the latest version of the FAQ?

  • I have visited the FAQ page right now and my issue is not present there

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Are you using the latest version of the Deforum extension?

  • I have Deforum updated to the lastest version and I still have the issue.

What happened?

Whenever I try to resume the timestring animation I end up with this error:

`Z:/Opsin_Media/\Opsin_Media/External_Productions/2024/07_July/31-07-2024_HousemeisterAI/INTERN/WorkingFiles/Deforum/img2img-images\NeuerOrdnerNeuesGlueck_20240807150404
Resuming: 2 frames counted, last 0-based frame index 1

START OF TRACEBACK
Traceback (most recent call last):
File "D:\AI\Automatic1111\webui\extensions\sd-webui-deforum\scripts\deforum_helpers\run_deforum.py", line 86, in run_deforum
render_animation(args, anim_args, video_args, parseq_args, loop_args, controlnet_args, root)
File "D:\AI\Automatic1111\webui\extensions\sd-webui-deforum\scripts\deforum_helpers\render.py", line 226, in render_animation
frame_idx, prev_img, img_history = get_resume_vars(args.outdir, anim_args.resume_timestring, turbo_steps, img_history)
File "D:\AI\Automatic1111\webui\extensions\sd-webui-deforum\scripts\deforum_helpers\resume.py", line 49, in get_resume_vars
raise IndexError("Not enough frames to resume. Need at least 2 times the diffusion_cadence.\n")
IndexError: Not enough frames to resume. Need at least 2 times the diffusion_cadence.

END OF TRACEBACK

User friendly error message:
Error: Not enough frames to resume. Need at least 2 times the diffusion_cadence.
. Check your schedules/ init values please. Also make sure you don't have a backwards slash in any of your PATHs - use / instead of .
`

It pretty much misscounts my Frames:
image

I have a custom path for my Img2Img folder but that should be a issue, everything works anyway and he finds the Folder. With less Frames it workes aswell. (around 400) This Animation is at around 3000 Frames.

Steps to reproduce the problem

  1. Go to Deforum animate around 3911 Frames
  2. Delete last 500 Frames or so and activate resume Timestring
  3. Press generate

What should have happened/how would you fix it?

The animation should continue on the Last Frame

Torch version

[2.1.2+cu12](torch: 2.1.2+cu121)

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

No response

Deforum settings

HousemeisterALL_v3.txt

Webui core settings

ui-config.json
``

Console logs

Deforum extension for auto1111 webui, v2.4b
Git commit: c6b9d58f

Use this table to validate your Parseq & Deforum setup:
╭───────┬───────────────┬──────────────────────────────────────────╮
│       │Parseq         │Deforum                                   │
├───────┼───────────────┼──────────────────────────────────────────┤
│Fields │prompt_weight_1│angle                                     │
│       │translation_z  │transform_center_x                        │
│       │strength       │transform_center_y                        │
│       │               │zoom                                      │
│       │               │translation_x                             │
│       │               │translation_y                             │
│       │               │rotation_3d_x                             │
│       │               │rotation_3d_y                             │
│       │               │rotation_3d_z                             │
│       │               │perspective_flip_theta                    │
│       │               │perspective_flip_phi                      │
│       │               │perspective_flip_gamma                    │
│       │               │perspective_flip_fv                       │
│       │               │noise                                     │
│       │               │contrast                                  │
│       │               │cfg_scale                                 │
│       │               │ddim_eta                                  │
│       │               │ancestral_eta                             │
│       │               │pix2pix_img_cfg_scale                     │
│       │               │subseed                                   │
│       │               │subseed_strength                          │
│       │               │checkpoint                                │
│       │               │steps                                     │
│       │               │seed                                      │
│       │               │sampler                                   │
│       │               │clipskip                                  │
│       │               │noise_multiplier                          │
│       │               │mask                                      │
│       │               │noise_mask                                │
│       │               │kernel                                    │
│       │               │sigma                                     │
│       │               │amount                                    │
│       │               │threshold                                 │
│       │               │aspect_ratio                              │
│       │               │fov                                       │
│       │               │near                                      │
│       │               │far                                       │
│       │               │loop_comp_type                            │
│       │               │loop_comp_alpha                           │
│       │               │loop_comp_conform                         │
│       │               │color_coherence_alpha                     │
│       │               │cadence_diffusion_easing                  │
│       │               │cadence_flow_easing                       │
│       │               │cadence_flow_factor                       │
│       │               │cadence_flow_warp_factor                  │
│       │               │temporal_flow_factor                      │
│       │               │temporal_flow_target_frame                │
│       │               │temporal_flow_motion_stabilizer_factor    │
│       │               │temporal_flow_rotation_stabilizer_factor  │
│       │               │morpho_flow_factor                        │
│       │               │morpho                                    │
│       │               │morpho_iterations                         │
│       │               │redo_flow_factor                          │
│       │               │hybrid_comp_conform                       │
│       │               │hybrid_flow_factor                        │
│       │               │hybrid_comp_alpha                         │
│       │               │hybrid_comp_mask_alpha                    │
│       │               │hybrid_comp_mask_contrast                 │
│       │               │hybrid_comp_mask_auto_contrast_cutoff_high│
│       │               │hybrid_comp_mask_auto_contrast_cutoff_low │
├───────┼───────────────┼──────────────────────────────────────────┤
│Prompts│✅             │❌                                        │
├───────┼───────────────┼──────────────────────────────────────────┤
│Frames │3911           │3911                                      │
├───────┼───────────────┼──────────────────────────────────────────┤
│FPS    │20             │20                                        │
╰───────┴───────────────┴──────────────────────────────────────────╯
Saving animation frames to:
Z:/Opsin_Media/\Opsin_Media/External_Productions/2024/07_July/31-07-2024_HousemeisterAI/INTERN/WorkingFiles/Deforum/img2img-images\NeuerOrdnerNeuesGlueck_20240807150404
Resuming: 2 frames counted, last 0-based frame index 1


*START OF TRACEBACK*
Traceback (most recent call last):
  File "D:\AI\Automatic1111\webui\extensions\sd-webui-deforum\scripts\deforum_helpers\run_deforum.py", line 86, in run_deforum
    render_animation(args, anim_args, video_args, parseq_args, loop_args, controlnet_args, root)
  File "D:\AI\Automatic1111\webui\extensions\sd-webui-deforum\scripts\deforum_helpers\render.py", line 226, in render_animation
    frame_idx, prev_img, img_history = get_resume_vars(args.outdir, anim_args.resume_timestring, turbo_steps, img_history)
  File "D:\AI\Automatic1111\webui\extensions\sd-webui-deforum\scripts\deforum_helpers\resume.py", line 49, in get_resume_vars
    raise IndexError("Not enough frames to resume. Need at least 2 times the diffusion_cadence.\n")
IndexError: Not enough frames to resume. Need at least 2 times the diffusion_cadence.

*END OF TRACEBACK*

User friendly error message:
Error: Not enough frames to resume. Need at least 2 times the diffusion_cadence.
. Check your schedules/ init values please. Also make sure you don't have a backwards slash in any of your PATHs - use / instead of \.
saving custom settings to Z:\Opsin_Media\Opsin_Media\External_Productions\2024\07_July\31-07-2024_HousemeisterAI\INTERN\WorkingFiles\Deforum\Settings\HousemeisterALL_v3.txt

Additional information

I use Parseq but it doesnt work even If I remove Parseq
Files are on a Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions