deforum / deforum/sd-webui-deforum

Suggestions by Rakile for better interrupt behavior

Open
#717 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.9k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

I don't know where to write it so I'll do it here ;P
Line 710 in render.py (# optical flow redo before generation)
disposable_image = generate(args, keys, anim_args, loop_args, controlnet_args, root, frame_idx, sampler_name=scheduled_sampler_name)
Might get a return of None (When state.interrupted)... So the next line fails...
So maybe a:
if disposable_image != None: (before continuing)

The same thing goes for "# diffusion redo" .....

_Originally posted by @Rakile in https://github.com/deforum-art/sd-webui-deforum/issues/716#issuecomment-1547386538_

Contributor guide

Open the contributing guide

Research direction

Open render.py around line 710 and trace the generate(...) call in the optical-flow redo path. Check how state.interrupted is represented and inspect the corresponding diffusion redo section. Done means an interruption does not let either path continue with a None image or trigger the reported follow-on failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.