Skip to content

Commit 7d14ccb

Browse files
committed
[style]: apply pre-commit formatting
1 parent 71626a9 commit 7d14ccb

12 files changed

Lines changed: 9 additions & 24 deletions

fastvideo/training/cosmos2_5_training_pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,3 @@ def _build_input_kwargs(self, training_batch: TrainingBatch) -> TrainingBatch:
132132
# ---------------------------------------------------------------------------
133133
# Entry point (mirrors wan_training_pipeline.py)
134134
# ---------------------------------------------------------------------------
135-

fastvideo/training/ltx2_training_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22
import os
3-
import sys
43
from copy import deepcopy
54
from pathlib import Path
65
import torch
@@ -473,4 +472,3 @@ def _clip_grad_norm(self, training_batch: TrainingBatch) -> TrainingBatch:
473472
grad_norm = 0.0
474473
training_batch.grad_norm = grad_norm
475474
return training_batch
476-

fastvideo/training/matrixgame2_ar_diffusion_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
import sys
43
from copy import deepcopy
54
from typing import Any, cast
65

@@ -426,4 +425,3 @@ def _prepare_validation_batch(
426425
batch.mouse_cond = mouse_cond
427426

428427
return batch
429-

fastvideo/training/matrixgame2_self_forcing_distillation_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
import sys
32
from collections.abc import Iterable
43
from copy import deepcopy
54
from typing import Any, cast
@@ -874,4 +873,3 @@ def _prepare_validation_batch(self, sampling_param: SamplingParam, training_args
874873
batch.mouse_cond = mouse_cond
875874

876875
return batch
877-

fastvideo/training/matrixgame2_training_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
import sys
32
from copy import deepcopy
43
from typing import Any
54

@@ -193,4 +192,3 @@ def _prepare_validation_batch(self, sampling_param: SamplingParam, training_args
193192
batch.mouse_cond = mouse_cond
194193

195194
return batch
196-

fastvideo/training/ode_causal_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
import sys
32
from copy import deepcopy
43
from typing import Any, cast
54

@@ -308,4 +307,3 @@ def visualize_intermediate_latents(self, training_batch: TrainingBatch, training
308307

309308
if self.global_rank == 0 and tracker_loss_dict:
310309
self.tracker.log_artifacts(tracker_loss_dict, step)
311-

fastvideo/training/runner.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ def main(args) -> None:
2222

2323
if __name__ == "__main__":
2424
parser = FlexibleArgumentParser()
25-
parser.add_argument("--pipeline_class", type=str, required=True, help="Name of the pipeline class to run, e.g., WanTrainingPipeline")
26-
parser.add_argument("--pipeline_module", type=str, required=True, help="Module containing the pipeline class, e.g., fastvideo.training.wan_training_pipeline")
25+
parser.add_argument("--pipeline_class",
26+
type=str,
27+
required=True,
28+
help="Name of the pipeline class to run, e.g., WanTrainingPipeline")
29+
parser.add_argument("--pipeline_module",
30+
type=str,
31+
required=True,
32+
help="Module containing the pipeline class, e.g., fastvideo.training.wan_training_pipeline")
2733
parser = TrainingArgs.add_cli_args(parser)
2834
parser = FastVideoArgs.add_cli_args(parser)
2935

fastvideo/training/wan_distillation_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
import sys
32
from copy import deepcopy
43

54
from fastvideo.fastvideo_args import FastVideoArgs, TrainingArgs
@@ -51,4 +50,3 @@ def initialize_validation_pipeline(self, training_args: TrainingArgs):
5150
dit_cpu_offload=True)
5251

5352
self.validation_pipeline = validation_pipeline
54-

fastvideo/training/wan_i2v_distillation_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
import sys
32
from copy import deepcopy
43
from typing import Any
54

@@ -173,4 +172,3 @@ def _build_distill_input_kwargs(self, noise_input: torch.Tensor, timestep: torch
173172
training_batch.noise_latents = noise_input
174173

175174
return training_batch
176-

fastvideo/training/wan_i2v_training_pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
import sys
32
from copy import deepcopy
43
from typing import Any
54

@@ -164,4 +163,3 @@ def _prepare_validation_batch(self, sampling_param: SamplingParam, training_args
164163
)
165164

166165
return batch
167-

0 commit comments

Comments
 (0)