Files
ComfyUI/comfy_extras
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
..
2025-05-13 10:50:32 -07:00
2025-07-21 16:48:25 -04:00
2024-05-27 19:08:27 -04:00
2025-07-18 05:43:02 -04:00
2025-04-30 20:57:30 -04:00
2025-05-06 04:23:00 -04:00
2024-11-10 00:10:45 -05:00
2024-05-27 19:08:27 -04:00
2024-03-18 16:54:13 -04:00
2025-07-01 02:33:07 -04:00
2025-07-29 22:17:22 -04:00