Fix issue with wan22 14b where timesteps were generated not in the current boundary.

This commit is contained in:
Jaret Burkett committed 2025-08-16 21:16:48 -06:00
1 parent 6fffadfc0e
commit b3e666daf4
4 files changed
+14 -13

No files matched your search

+1 -1
View File
@@ -1864,7 +1864,7 @@ class SDTrainer(BaseSDTrainProcess):
for batch in batch_list:
if self.sd.is_multistage:
# handle multistage switching
if self.steps_this_boundary >= self.train_config.switch_boundary_every:
if self.steps_this_boundary >= self.train_config.switch_boundary_every or self.current_boundary_index not in self.sd.trainable_multistage_boundaries:
# iterate to make sure we only train trainable_multistage_boundaries
while True:
self.steps_this_boundary = 0