mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-21 07:55:16 +00:00
better command
This commit is contained in:
@@ -6,6 +6,10 @@ OUTPUT_DIR=videos_prepared
|
|||||||
NUM_FRAMES=37
|
NUM_FRAMES=37
|
||||||
RESOLUTION=480x848
|
RESOLUTION=480x848
|
||||||
|
|
||||||
|
# Extract width and height from RESOLUTION
|
||||||
|
WIDTH=$(echo $RESOLUTION | cut -dx -f1)
|
||||||
|
HEIGHT=$(echo $RESOLUTION | cut -dx -f2)
|
||||||
|
|
||||||
python trim_and_crop_videos.py $VIDEO_DIR $OUTPUT_DIR --num_frames=$NUM_FRAMES --resolution=$RESOLUTION --force_upsample
|
python trim_and_crop_videos.py $VIDEO_DIR $OUTPUT_DIR --num_frames=$NUM_FRAMES --resolution=$RESOLUTION --force_upsample
|
||||||
|
|
||||||
CUDA_VISIBLE_DEVICES=$GPU_ID python embed.py $OUTPUT_DIR --shape=37x480x848
|
CUDA_VISIBLE_DEVICES=$GPU_ID python embed.py $OUTPUT_DIR --shape=${NUM_FRAMES}x${WIDTH}x${HEIGHT}
|
||||||
|
|||||||
Reference in New Issue
Block a user