-
The demo inference result (automatically clipped video) can be found: https://drive.google.com/file/d/1pKmR2JF7YHkeNnhvPVcEOipaU1sZ76jR/view?usp=drive_link
-
Here is the presentation slide: https://docs.google.com/presentation/d/1D_ZEj6tLAETAT6sK1z0dqZLM6fKoUmzq/edit?usp=drive_link&ouid=112620541577719764728&rtpof=true&sd=true
The process of generate this video:
- find a good mash-up video online (eg. https://drive.google.com/file/d/1BIAYRRFWV3lXB834nH627cZgd__5PNlN/view?usp=sharing)
- use your own footage video (eg. https://drive.google.com/file/d/1VOrY-tx84wfpl9wIF_EF2sRa4StvRvIw/view?usp=sharing)
- run the inference.py to make your own mash-up video with the similar editing style (eg. https://drive.google.com/file/d/1pKmR2JF7YHkeNnhvPVcEOipaU1sZ76jR/view?usp=drive_link)
- run feature_code_book_generator.py, this code will use GPT-Vision-API to help you find the best feature book for this mash-up. (you may need change the path where to load and save in the code)
- run this command:
python inference.py
--exp_dir="YOUR TRAIN OUTPUT FOLDER"
--pretrained="best_model.pt"
--data_dir="WHERE THE FOOTAGE VIDEO IS"
--video_name="FOOTAGE VIDEO"
--json_name="YOUR JSON"
--fps=10
--n_frames=8
--size=224
--out_mash_video="OUTPUT VIDEO NAME"
--reference_video="YOUR REFERENCE VIDEO"
--projection_dim=512 we provide a draft model weight (not fully trained, just for testing): - Enjoy the romance of GenAI!
- prepare your training video in a video folder
- run the video_caption_generator_nova.py, to use GPT-4o generate the training feature_code_book for training dataset (you will get a .JSON file)
- then run the training code - main.py using:
python main.py
--json_path="TRAINING DATA JSON"
--out_dir="TRAIN RESULT"
--n_frames=3
--frame_size=224
--batch_size=64
--target_fps=5
--epochs=50
--lr=1e-5
--projection_dim=512
Here are some of the output comparison during our testing At the same period of time in the video: Left is the auto-clipped mash-up video (in Japan) Right is the oinline mash-up video (in Seatle, US)







