Skip to content

Commit d1a92ba

Browse files
committed
1217
1 parent 05f6cb8 commit d1a92ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/hunyuanvideo/train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,8 @@ def main(args):
11651165
transformer.to(accelerator.device, dtype=weight_dtype)
11661166
vae.to(accelerator.device, dtype=weight_dtype)
11671167

1168-
# if args.gradient_checkpointing:
1169-
# transformer.enable_gradient_checkpointing()
1168+
if args.gradient_checkpointing:
1169+
transformer.enable_gradient_checkpointing()
11701170

11711171
# now we will add new LoRA weights to the attention layers
11721172
transformer_lora_config = LoraConfig(

examples/hunyuanvideo/train_single_node.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#!/bin/bash
22
# CUDA_VISIBLE_DEVICES=6
33
export WANDB_MODE="offline"
4-
export MODEL_PATH="/storage/ysh/Code/ID_Consistency/Code/2_offen_codes/0_temp_hf/HunyuanVideo/ckpt_diffusers"
5-
export DATASET_PATH="/storage/ysh/Code/ID_Consistency/Code/2_offen_codes/0_temp_hf/HunyuanVideo/Disney-VideoGeneration-Dataset"
4+
export MODEL_PATH="tencent/HunyuanVideo"
5+
export DATASET_PATH="Disney-VideoGeneration-Dataset"
66
export OUTPUT_PATH="cogvideox-lora-single-node"
77
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
88

99
# if you are not using wth 8 gus, change `accelerate_config_machine_single.yaml` num_processes as your gpu number
10-
accelerate launch --config_file /storage/ysh/Code/ID_Consistency/Code/2_offen_codes/0_temp_hf/HunyuanVideo/accelerate_config_machine_single.yaml \
10+
accelerate launch --config_file accelerate_config_machine_single.yaml \
1111
train.py \
1212
--gradient_checkpointing \
1313
--pretrained_model_name_or_path $MODEL_PATH \
1414
--enable_tiling \
1515
--enable_slicing \
1616
--instance_data_root $DATASET_PATH \
17-
--caption_column /storage/ysh/Code/ID_Consistency/Code/2_offen_codes/0_temp_hf/HunyuanVideo/Disney-VideoGeneration-Dataset/prompt_1.txt \
18-
--video_column /storage/ysh/Code/ID_Consistency/Code/2_offen_codes/0_temp_hf/HunyuanVideo/Disney-VideoGeneration-Dataset/videos_1.txt \
17+
--caption_column prompt_1.txt \
18+
--video_column videos_1.txt \
1919
--validation_prompt "DISNEY A black and white animated scene unfolds with an anthropomorphic goat surrounded by musical notes and symbols, suggesting a playful environment. Mickey Mouse appears, leaning forward in curiosity as the goat remains still. The goat then engages with Mickey, who bends down to converse or react. The dynamics shift as Mickey grabs the goat, potentially in surprise or playfulness, amidst a minimalistic background. The scene captures the evolving relationship between the two characters in a whimsical, animated setting, emphasizing their interactions and emotions:::A panda, dressed in a small, red jacket and a tiny hat, sits on a wooden stool in a serene bamboo forest. The panda's fluffy paws strum a miniature acoustic guitar, producing soft, melodic tunes. Nearby, a few other pandas gather, watching curiously and some clapping in rhythm. Sunlight filters through the tall bamboo, casting a gentle glow on the scene. The panda's face is expressive, showing concentration and joy as it plays. The background includes a small, flowing stream and vibrant green foliage, enhancing the peaceful and magical atmosphere of this unique musical performance" \
2020
--validation_prompt_separator ::: \
2121
--num_validation_videos 1 \

0 commit comments

Comments
 (0)