Commit Graph

9 Commits

Author SHA1 Message Date
ozbayb
9a48acb211 Add handling for audio_embed 2025-12-05 19:13:29 +02:00
kijai
a8aae35afd Allow splitting multiple conds into different windows 2025-12-05 19:13:29 +02:00
kijai
dcf721b772 Update context_windows.py 2025-12-05 19:13:29 +02:00
kijai
e2269b4208 Add option to retain condition by indexes for each window
This allows for example Wan/HunyuanVideo image to video to "work" by using the initial start frame for each window, otherwise windows beyond first will be pure T2V generations.
2025-12-05 19:13:29 +02:00
kijai
ac93376ef8 Update context_windows.py 2025-12-05 19:13:29 +02:00
kijai
928fd4d13f Add FreeNoise 2025-12-05 19:13:28 +02:00
Jedrzej Kosinski
1cd5b90385 Apply cond slice fix 2025-12-05 19:13:28 +02:00
Jedrzej Kosinski
7f3b9b16c6
Make step index detection much more robust (#9392) 2025-08-17 18:54:07 -04:00
Jedrzej Kosinski
e4f7ea105f
Added context window support to core sampling code (#9238)
* Added initial support for basic context windows - in progress

* Add prepare_sampling wrapper for context window to more accurately estimate latent memory requirements, fixed merging wrappers/callbacks dicts in prepare_model_patcher

* Made context windows compatible with different dimensions; works for WAN, but results are bad

* Fix comfy.patcher_extension.merge_nested_dicts calls in prepare_model_patcher in sampler_helpers.py

* Considering adding some callbacks to context window code to allow extensions of behavior without the need to rewrite code

* Made dim slicing cleaner

* Add Wan Context WIndows node for testing

* Made context schedule and fuse method functions be stored on the handler instead of needing to be registered in core code to be found

* Moved some code around between node_context_windows.py and context_windows.py

* Change manual context window nodes names/ids

* Added callbacks to IndexListContexHandler

* Adjusted default values for context_length and context_overlap, made schema.inputs definition for WAN Context Windows less annoying

* Make get_resized_cond more robust for various dim sizes

* Fix typo

* Another small fix
2025-08-13 21:33:05 -04:00