This file contains hidden or 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
__author__ = 'Yuanjun Xiong' | |
""" | |
This script will transform an image based Caffe model to its optic flow ready form | |
The basic approach is to average the three channels of the first set of convolution filters. | |
Averaged filters are then replicated K times to incorporate K input frames of optical flow maps. | |
Refer to "Towards Good Practices for Very Deep Two-Stream ConvNets" for more details. | |
====================================================================== | |
Usage: | |
python build_flow_network.py <caffe root> <first layer name> <image model prototxt> <image model weights> <flow model prototxt> <flow model weights[out]> |
This file contains hidden or 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 part goes in preamble | |
\newcommand{\dummyfig}[1]{ | |
\centering | |
\fbox{ | |
\begin{minipage}[c][0.33\textheight][c]{0.5\textwidth} | |
\centering{#1} | |
\end{minipage} | |
} | |
} |