Views
No views yet
sudo apt-get update && sudo apt-get install git-lfs ffmpeg cbm1git clone https://huggingface.co/svjack/Genshin_Impact_Mavuika_HunyuanVideo_lora
2cd Genshin_Impact_Mavuika_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 "Mavuika, featuring long, wavy red hair with golden highlights and large, star-shaped earrings. Mavuika wears dark sunglasses, a black choker, and a black leather glove on their left hand. Their attire includes a black and gold armor-like top with intricate designs. The background is a gradient of soft white to light blue, emphasizing Mavuika's confident expression and stylish appearance." \
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 Mavuika_im_lora_dir/Mavuika_single_im_lora-000035.safetensors
191python hv_generate_video.py \
2 --fp8 \
3 --video_size 544 960 \
4 --video_length 60 \
5 --infer_steps 30 \
6 --prompt "Fantastic artwork of Mavuika, featuring long, wavy red hair with golden highlights and large, star-shaped earrings. Mavuika wears dark sunglasses, a black choker, and a black leather glove on their left hand. Their attire includes a black and gold armor-like top with intricate designs, standing confidently in a warm sunset-lit rural village. The background transitions into the interior of a futuristic spaceship, blending the rustic and sci-fi elements seamlessly. The gradient of soft white to light blue in the sky enhances Mavuika's stylish and commanding presence." \
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 Mavuika_im_lora_dir/Mavuika_single_im_lora-000035.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.