Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
demo script for using pretrained model
- Loading branch information
Showing
6 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
echo 'Downloading sample test video and extracted frames' | ||
wget http://relation.csail.mit.edu/data/juggling.mp4 | ||
wget -r -nH --cut-dirs=1 --no-parent --reject="index.html*" http://relation.csail.mit.edu/data/juggling_frames/ | ||
ls -1 $PWD/juggling_frames/* > juggling_frame_list.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Make prediction from mp4 video file. | ||
python test_video.py --video_file sample_data/juggling.mp4 --rendered_output sample_data/predicted_video.mp4 | ||
# Make prediction from mp4 video file (ffmpeg is required) | ||
#python test_video.py --video_file sample_data/juggling.mp4 --rendered_output sample_data/predicted_video.mp4 --weight pretrain/TRN_moments_RGB_InceptionV3_TRNmultiscale_segment8_best.pth.tar --arch InceptionV3 --dataset moments | ||
|
||
# Make prediction using list of extracted video frames. | ||
python test_video.py --frame_list sample_data/juggling_frame_list.txt | ||
# Make prediction with input a a folder name with RGB frames | ||
python test_video.py --frame_folder sample_data/juggling_frames --weight pretrain/TRN_moments_RGB_InceptionV3_TRNmultiscale_segment8_best.pth.tar --arch InceptionV3 --dataset moments |