Skip to content

Support for 5D latents (video models) and scheduling #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blepping
Copy link

@blepping blepping commented Mar 8, 2025

The main thing this pull adds is support for 5D latents so Tiled Diffusion can be used with video models and the ability to schedule the Tiled Diffusion effect.

Some refactoring was necessary to make applying settings function in a relatively sane way. Some of it, I just couldn't help myself. :) I tried to preserve the existing code style as much as possible.

One change I probably should explain is instead of having to track existing TiledDiffusion instances with a WeakSet, one can just keep a sequence number and update it whenever the instances need to reset. That way, instances can just save the sequence number from the last reset (or when they're created) and know to reset themselves when it changes.

These changes are lightly tested, as far as I can tell they don't break existing functionality. There is one case where they would break existing workflows: when a user is applying SpotDiffusion parameters before the TiledDiffusion model patch is applied. These changes require applying parameters after TiledDiffusion.

This pull also adds a TiledDiffusion Advanced Parameters node that currently allows configuring the start/end sigmas for the Tiled Diffusion effect. Adding other options, like allowing the user to specify a list of bboxes would be possible in the future. It would be pretty nice to be able to use custom bboxes instead of a fixed-size grid.

I'd like to add the ability to do temporal tiling but I figured I would make that a separate pull to keep these changes relatively manageable.

Small example of what this can enable:

AnimateDiff_00161.mp4

Allow scheduling the Tiled Diffusion effect
Other minor cleanups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant