VGG以特定格式提取特征

问题描述:

我试图让this repo正常工作。我跟着指示,并得到使用该脚本(来自同一回购拍摄)样本数据:VGG以特定格式提取特征

#!/usr/bin/env sh 
# This script downloads the trained S2VT VGG (RGB) model, 
# associated vocabulary, and frame features for the validation set. 

echo "Downloading Model and Data [~400MB] ..." 

wget --no-check-certificate https://www.dropbox.com/s/wn6k2oqurxzt6e2/s2s_vgg_pstream_allvocab_fac2_iter_16000.caffemodel 
wget --no-check-certificate https://www.dropbox.com/s/20mxirwrqy1av01/yt_allframes_vgg_fc7_val.txt 
wget --no-check-certificate https://www.dropbox.com/s/v1lrc6leknzgn3x/yt_coco_mvad_mpiimd_vocabulary.txt 

echo "Organizing..." 

DIR="./snapshots" 
if [ ! -d "$DIR" ]; then 
    mkdir $DIR 
fi 
mv s2s_vgg_pstream_allvocab_fac2_iter_16000.caffemodel $DIR"/s2vt_vgg_rgb.caffemodel" 

echo "Done." 

在下一步他们说,我需要sample video frames and extract VGG features for the frames。我不确定如何做到这一点。我遵循instruction on Caffe,但功能不是相同的格式。

那么如何提取与yt_allframes_vgg_fc7_val.txt相同格式的VGG功能?

+1

[从VGG中提取特征]的可能的复制(http://*.com/questions/33208282/extracting-features-from-vgg) – Prune

此回购提供了脚本从视频中提取VGG功能 - https://github.com/jesu9/VGGFeatExtract

特别是看到脚本video_demo.py。这将输出mat文件,您将不得不将其转换为txt文件。

VGG 16层模型和可用在prototxt文件 - https://gist.github.com/ksimonyan/211839e770f7b538e2d8