Wan2.1/wan
Adrian Corduneanu fea47e70f7
Fix assertion error in UniPC scheduler for high step counts
This fixes an edge case in the FlowUniPCMultistepScheduler where using high sampling step counts (> 50) would cause an assertion error in the last step. The issue was that with lower_order_final=True, the order calculation could become 0 when step_index equals len(timesteps), causing 'assert self.this_order > 0' to fail.

The fix ensures this_order is always at least 1, maintaining stability while allowing higher quality generation with increased step counts.

🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com
2025-02-28 22:31:58 -08:00
..
configs init upload 2025-02-25 22:07:47 +08:00
distributed init upload 2025-02-25 22:07:47 +08:00
modules init upload 2025-02-25 22:07:47 +08:00
utils Fix assertion error in UniPC scheduler for high step counts 2025-02-28 22:31:58 -08:00
__init__.py init upload 2025-02-25 22:07:47 +08:00
image2video.py init upload 2025-02-25 22:07:47 +08:00
text2video.py Update text2video.py to reduce GPU memory by emptying cache (#44) 2025-02-26 18:56:57 +08:00