#Extract dense optical flow and save as grayscale or RGB images Copyright @ Kai Kang (myfavouritekk@gmail.com) 2016
##Dependencies
- OpenCV 2 with
Pythoninterface glob,numpy,siopy
##Usages
# help messages| """Information Retrieval metrics | |
| Useful Resources: | |
| http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
| http://www.nii.ac.jp/TechReports/05-014E.pdf | |
| http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
| http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
| Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
| """ | |
| import numpy as np |
| # Copy line by line and paste to an interactive shell | |
| # Update system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| # Install Java | |
| sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jdk |
| # install protobuf | |
| sudo dnf install protobuf* | |
| # install bazel | |
| # https://docs.bazel.build/versions/master/install-redhat.html | |
| sudo dnf copr enable vbatts/bazel | |
| sudo dnf install bazel | |
| # get TF src | |
| git clone https://github.com/tensorflow/tensorflow.git |
| #include "caffeclassifier.h" | |
| CaffeClassifier::CaffeClassifier(const string& model_file, | |
| const string& trained_file, | |
| const string& mean_file, | |
| const string& label_file, | |
| const bool use_GPU, | |
| const int batch_size) { | |
| if (use_GPU) | |
| Caffe::set_mode(Caffe::GPU); |
| #include <cuda_runtime.h> | |
| #include <cstring> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <string> | |
| #include <iostream> | |
| #include <stdio.h> | |
| #include "caffe/caffe.hpp" |
| import sys | |
| import numpy as np | |
| import scipy.io | |
| import caffe | |
| # take args for model arch (prototxt), input/output models (binaryproto ), | |
| # layer name, and channel permutation. | |
| arch_f, in_f, out_f = sys.argv[1:4] | |
| layer = sys.argv[4] |
#Extract dense optical flow and save as grayscale or RGB images Copyright @ Kai Kang (myfavouritekk@gmail.com) 2016
##Dependencies
Python interfaceglob, numpy, siopy##Usages
# help messages