Skip to content

Commit 2a70b16

Browse files
authored
add "max_sequence_length": model_config.max_text_seq_length, (#15)
Co-authored-by: --unset <--unset>
1 parent 00f7519 commit 2a70b16

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

training/cogvideox_image_to_video_lora.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ def collate_fn(data):
839839
"use_dynamic_cfg": args.use_dynamic_cfg,
840840
"height": args.height,
841841
"width": args.width,
842+
"max_sequence_length": model_config.max_text_seq_length,
842843
}
843844

844845
log_validation(

training/cogvideox_text_to_video_lora.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ def collate_fn(data):
808808
"use_dynamic_cfg": args.use_dynamic_cfg,
809809
"height": args.height,
810810
"width": args.width,
811+
"max_sequence_length": model_config.max_text_seq_length,
811812
}
812813

813814
log_validation(

training/cogvideox_text_to_video_sft.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ def collate_fn(data):
772772
"use_dynamic_cfg": args.use_dynamic_cfg,
773773
"height": args.height,
774774
"width": args.width,
775+
"max_sequence_length": model_config.max_text_seq_length,
775776
}
776777

777778
log_validation(

0 commit comments

Comments
 (0)