Views
No views yet
sudo apt-get update && sudo apt-get install cbm git-lfs ffmpeg1git clone https://huggingface.co/svjack/FramePack_Image_Edit_Lora_Early
2cd FramePack_Image_Edit_Lora_Early1pip install torch torchvision
2pip install -r requirements.txt
3pip install ascii-magic matplotlib tensorboard huggingface_hub datasets
4pip install moviepy==1.0.3
5pip install sageattention==1.0.61 git clone https://huggingface.co/lllyasviel/FramePackI2V_HY
2 git clone https://huggingface.co/hunyuanvideo-community/HunyuanVideo
3 git clone https://huggingface.co/Comfy-Org/HunyuanVideo_repackaged
4 git clone https://huggingface.co/Comfy-Org/sigclip_vision_384fpack_generate_video.py script with the appropriate parameters. Below are examples of how to do it.
Make sure use 512x512 as output (this used to train it.)
1python fpack_generate_video.py \
2 --dit FramePackI2V_HY/diffusion_pytorch_model-00001-of-00003.safetensors \
3 --vae HunyuanVideo/vae/diffusion_pytorch_model.safetensors \
4 --text_encoder1 HunyuanVideo_repackaged/split_files/text_encoders/llava_llama3_fp16.safetensors \
5 --text_encoder2 HunyuanVideo_repackaged/split_files/text_encoders/clip_l.safetensors \
6 --image_encoder sigclip_vision_384/sigclip_vision_patch14_384.safetensors \
7 --image_path xiang_image.jpg \
8 --prompt "add a cat into the picture" \
9 --video_size 512 512 --fps 30 --infer_steps 25 \
10 --attn_mode sdpa --fp8_scaled \
11 --vae_chunk_size 32 --vae_spatial_tile_sample_min_size 128 \
12 --save_path save --video_sections 1 --output_type latent_images --one_frame_inference zero_post \
13 --seed 1234 --lora_multiplier 1.0 --lora_weight framepack_edit_output/framepack-edit-lora-000005.safetensors

1python fpack_generate_video.py \
2 --dit FramePackI2V_HY/diffusion_pytorch_model-00001-of-00003.safetensors \
3 --vae HunyuanVideo/vae/diffusion_pytorch_model.safetensors \
4 --text_encoder1 HunyuanVideo_repackaged/split_files/text_encoders/llava_llama3_fp16.safetensors \
5 --text_encoder2 HunyuanVideo_repackaged/split_files/text_encoders/clip_l.safetensors \
6 --image_encoder sigclip_vision_384/sigclip_vision_patch14_384.safetensors \
7 --image_path wanye.jpg \
8 --prompt "Change the background into a restaurant in anime style. Keep the character's eye colors and white hair unchanged." \
9 --video_size 512 512 --fps 30 --infer_steps 25 \
10 --attn_mode sdpa --fp8_scaled \
11 --vae_chunk_size 32 --vae_spatial_tile_sample_min_size 128 \
12 --save_path save --video_sections 1 --output_type latent_images --one_frame_inference zero_post \
13 --seed 1234 --lora_multiplier 1.0 --lora_weight framepack_edit_output/framepack-edit-lora-000005.safetensors
14

1python fpack_generate_video.py \
2 --dit FramePackI2V_HY/diffusion_pytorch_model-00001-of-00003.safetensors \
3 --vae HunyuanVideo/vae/diffusion_pytorch_model.safetensors \
4 --text_encoder1 HunyuanVideo_repackaged/split_files/text_encoders/llava_llama3_fp16.safetensors \
5 --text_encoder2 HunyuanVideo_repackaged/split_files/text_encoders/clip_l.safetensors \
6 --image_encoder sigclip_vision_384/sigclip_vision_patch14_384.safetensors \
7 --image_path train.jpg \
8 --prompt "place the train into a beautiful landscape" \
9 --video_size 512 512 --fps 30 --infer_steps 25 \
10 --attn_mode sdpa --fp8_scaled \
11 --vae_chunk_size 32 --vae_spatial_tile_sample_min_size 128 \
12 --save_path save --video_sections 1 --output_type latent_images --one_frame_inference zero_post \
13 --seed 1234 --lora_multiplier 1.0 --lora_weight framepack_edit_output/framepack-edit-lora-000005.safetensors