C3D User Guide Google Docs

User Manual: Pdf

Open the PDF directly: View PDF PDF.
Page Count: 5

DownloadC3D User Guide - Google Docs
Open PDF In BrowserView PDF
C3D User Guide
Du Tran (Last modified Mar 20, 2017)

C3D-v1.1 is released with new models (Mar 01, 2017).
● No documentation for v1.1 yet, but some examples for feature extraction,
training, and fine-tuning are provided.

The below guide was written for C3D-v1.0
I. C3D Feature Extraction
If you have installed C3D successfully (same as install caffe and its dependences), following the
following steps:
+ Download pre-trained model and save it to
YOUR_C3D_HOME/examples/c3d_feature_extraction
+ Change directory to YOUR_C3D_HOME/examples/c3d_feature_extraction
+ Run: sh c3d_sport1m_feature_extraction_frm.sh or sh

c3d_sport1m_feature_extraction_video.sh
If you can run the examples successfully, then you should find the extracted features in the
output folders.
If you run to “out of memory” error, then you should consider to reduce the batch-size (see
section I.B)
If you can run feature extraction with frames successfully, but fail with the video inputs. The
cause may come from video codecs. Make sure you had compiled your OpenCV and Ffmpeg
with shared-flags are on.
+

make sure that ‘shuffle: false’ in your data layer when you use C3D as a feature
extractor. This help us to keep the correspondences between the input clips and the
output features.

I.A Extract C3D features for your own videos or frames
a. Prepare your input files
- C3D allows you to use video inputs as sequences of frames or video files. In the case of
video files (.mp4, .avi, .mov), make sure that your machine has codecs, opencv, and
ffmpeg installed properly. In the case of using frames, C3D assumes that each video is a
folder with frames which are numbered starting from 1 to N (number of frames). The
frame names are formatted as “video_folder/%06d.jpg”.

-

Note that: frame numbers starting from 1 (e.g. 1..N) for using frame as inputs, and
starting from 0 (e.g. [0..N-1]) for using video as inputs.

b. Prepare your setting files
- There are two setting files you need to prepare: input-list and output prefix. In the
provided example, they are: input_list_frm.txt, input_list_video.txt, and
output_list_prefix.txt in YOUR_C3D_HOME/examples/c3d_feature_extraction/prototxt
- The input list file is a text file where each line contain information for a clip that you are
inputting into C3D for extracting features. Each line has the following format:
  

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : No
Page Count                      : 5
Has XFA                         : No
Creator                         : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Producer                        : ¸£ê¿ÔĶÁÆ÷´òÓ¡»ú°æ±¾8.3.1.0522
Create Date                     : 2017:10:09 08:14:40+00:00
Modify Date                     : 2017:11:05 16:17:19+08:00
EXIF Metadata provided by EXIF.tools

Navigation menu