Code Monkey home page Code Monkey logo

ccf_feature_extraction's Introduction

ccf_feature_extraction

This is a package for person appearance extraction using Convolutional Channel Filter (CCF). We trained Ahmed's person identification network with CUHK01 and CUHK03 datasets, and take the first two convolutional layers of the network to take advantage of the deep feature representation. You can use it by just including a header file.

Requirements

  • OpenCV 2 or later
  • dlib 19.9

Specify the directory you put dlib as $DLIB_ROOT.

cd /where/you/want/to/pub/dlib
wget http://dlib.net/files/dlib-19.9.tar.bz2
tar xvf dlib-19.9.tar.bz2
echo "export DLIB_ROOT=\"$(pwd)/dlib-19.9\"" >> ~/.bashrc
source ~/.bashrc

API

// This is a header-only library
// You can use it by just including the following header
#include <ccf_feature_extraction/ccf_extractor.hpp>

// You can use CCFs based on the original Ahmed's network (which yields 25 feature maps) or a tiny version of it (10 feature maps)
// ccf::AhmedSubnet subnet(package_dir + "/data/cnn_params");        // original 
ccf::TinyAhmedSubnet subnet(package_dir + "/data/cnn_params_tiny");  // tiny

// Re-order the pixels since the network was trained with RGB pixel order
cv::Mat bgr_image = ...;
cv::cvtColor(bgr_image, rgb_image);

// Extract feature maps using CCF
// Each respose map has CV_32FC1 pixels
std::vector<cv::Mat> responses = subnet(rgb_image);

Example

roscd ccf_feature_extraction/data/persons/
rosrun ccf_feature_extraction ccf_feature_extraction_test personA.jpg personB.jpg personC.jpg




Person images taken from CUHK01.

Papers

Kenji Koide, Jun Miura, Convolutional Channel Filter-based Person Identification for Person Following Robots, 15th IAS Conference PDF.

ccf_feature_extraction's People

Contributors

koide3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

c-peng

ccf_feature_extraction's Issues

how weak classifier is distributed in 10 feature maps.

In the paper "In this work, each weak classifier takes the sum of pixel values in a random rectangle region on a feature map and classifies images into the target and other persons using a naive Bayes classifier."and "In this work, we use online boosting with 10 weak classifier selectors, and each selector contains 15 weak classifiers. Thus, the total number of weak classifiers is 150, and 10 of them are selected to construct an ensemble. "
I can't understand that how weak classifier is distributed in 10 feature maps. Can you answers for me.
I want to implement your paper.Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.