Views
No views yet
sudo apt-get update && sudo apt-get install git-lfs ffmpeg cbm1git clone https://huggingface.co/svjack/Prince_Ciel_Phantomhive_HunyuanVideo_lora
2cd Prince_Ciel_Phantomhive_HunyuanVideo_lora1conda create -n py310 python=3.10
2conda activate py310
3pip install ipykernel
4python -m ipykernel install --user --name py310 --display-name "py310"
5
6pip install -r requirements.txt
7pip install ascii-magic matplotlib tensorboard huggingface_hub
8pip install moviepy==1.0.3
9pip install sageattention==1.0.6
10
11pip install torch==2.5.0 torchvisionckpts directory:huggingface-cli download tencent/HunyuanVideo --local-dir ./ckpts1cd ckpts
2huggingface-cli download xtuner/llava-llama-3-8b-v1_1-transformers --local-dir ./llava-llama-3-8b-v1_1-transformers
3wget https://raw.githubusercontent.com/Tencent/HunyuanVideo/refs/heads/main/hyvideo/utils/preprocess_text_encoder_tokenizer_utils.py
4python preprocess_text_encoder_tokenizer_utils.py --input_dir llava-llama-3-8b-v1_1-transformers --output_dir text_encoderhuggingface-cli download openai/clip-vit-large-patch14 --local-dir ./text_encoder_21python hv_generate_video.py \
2 --fp8 \
3 --video_size 544 960 \
4 --video_length 60 \
5 --infer_steps 30 \
6 --prompt "Ciel Phantomhive, depicted in a semi-realistic art style. Ciel has short, silver hair with bangs, and an eyepatch over his right eye. He wears a black military-style uniform with white accents, including a high-collared shirt and a belt with a buckle. His expression is stern and focused. The background is a soft, pastel purple, contrasting with the darker tones of his outfit. The image has a clean, polished look with smooth shading and attention to detail in the uniform's textures and folds." \
7 --save_path . \
8 --output_type both \
9 --dit ckpts/hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states.pt \
10 --attn_mode sdpa \
11 --vae ckpts/hunyuan-video-t2v-720p/vae/pytorch_model.pt \
12 --vae_chunk_size 32 \
13 --vae_spatial_tile_sample_min_size 128 \
14 --text_encoder1 ckpts/text_encoder \
15 --text_encoder2 ckpts/text_encoder_2 \
16 --seed 1234 \
17 --lora_multiplier 1.0 \
18 --lora_weight Ciel_im_lora_dir/Ciel_single_im_lora-000030.safetensors1python hv_generate_video.py \
2 --fp8 \
3 --video_size 544 960 \
4 --video_length 60 \
5 --infer_steps 30 \
6 --prompt "Ciel Phantomhive, depicted in a semi-realistic art style, stands amidst the bustling, rain-soaked streets of a city. Ciel has short, silver hair with bangs, and an eyepatch over his right eye. He wears a black military-style uniform with white accents, including a high-collared shirt and a belt with a buckle, the fabric slightly damp from the drizzle. His expression is stern and focused, as if undeterred by the chaotic surroundings. The background is a moody blend of gray skies and shimmering reflections from the wet pavement, with streaks of rain adding a dynamic texture. Neon lights from nearby buildings cast a faint glow, contrasting with the darker tones of his outfit. The image has a clean, polished look, with smooth shading and meticulous attention to detail in the uniform's textures and folds, emphasizing Ciel's commanding presence in the midst of the urban downpour." \
7 --save_path . \
8 --output_type both \
9 --dit ckpts/hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states.pt \
10 --attn_mode sdpa \
11 --vae ckpts/hunyuan-video-t2v-720p/vae/pytorch_model.pt \
12 --vae_chunk_size 32 \
13 --vae_spatial_tile_sample_min_size 128 \
14 --text_encoder1 ckpts/text_encoder \
15 --text_encoder2 ckpts/text_encoder_2 \
16 --seed 1234 \
17 --lora_multiplier 1.0 \
18 --lora_weight Ciel_im_lora_dir/Ciel_single_im_lora-000030.safetensors--video_size, --video_length, and --infer_steps parameters as needed for different output qualities and lengths.--prompt parameter can be modified to generate videos with different scenes or actions.