File size: 517 Bytes
ba32b3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

target_dir="./DEMO/data"

video_dir="./data/AdamKinzinger2_3.mp4"

ffmpeg -hide_banner -y -i $video_dir -r 25 $target_dir/full/%05d.png

# crop and resize video frames
python crop_portrait.py \
    --data_dir $target_dir \
    --crop_level 1.5 \
    --vertical_adjust 0.2

# python demo.py \
#     --config config/mix-resolution.yml \
#     --checkpoint checkpoints/mix-train.pth.tar \
#     --source_image DEMO/00018.png \
#     --driving_video DEMO/AdamKinzinger2_3.mp4  \
#     --video_out_path \
#     --relative