[Bugfix] fix _normalize_dit_input (#681)

This commit is contained in:
MartinPernus
2025-08-01 05:10:27 -04:00
committed by GitHub
parent 2c53d3eecf
commit fcba463553
+3 -3
View File
@@ -209,9 +209,9 @@ class TrainingPipeline(LoRAPipeline, ABC):
def _normalize_dit_input(self,
training_batch: TrainingBatch) -> TrainingBatch:
# TODO(will): support other models
training_batch.latents = normalize_dit_input(
'wan', training_batch.latents,
self.validation_pipeline.get_module("vae"))
training_batch.latents = normalize_dit_input('wan',
training_batch.latents,
self.get_module("vae"))
return training_batch
def _prepare_dit_inputs(self,