Git Product home page Git Product logo

stnumber's Introduction

CaffeTools

This project include some interface to help the users using caffe more convenient

Dependencies

Use Instruction

After the depdendencies are setted up, you can compile and install our tools
#You are supposed under the root directory of our project
$mkdir build && cd build
$cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/where/you/want/install ..
$make install

1.The program can generate bounding boxes with PNet, RNet, ONet of MTCNN

To use the program, you should prepare your images and annotations in the follow struct

---------------folder1-----------whateveryouwant--------------------cam0
      |                 |------xml
      |
     folder2-----------whateveryouwant--------------------cam0
      |                 |------xml
      |
      .
      .
      .
Then a filelists shuold be generated, which include the full path of the folder include the cam0 and xml, and the file name followed.
For example, filelists.txt, like this
/root/pathtofolder1/folder1/whateveryouwant/beforecam0 image_0001
/root/pathtofolder1/folder1/whateveryouwant/beforecam0 image_0002
...

To generate patches, you can run the
patchtest filelists.txt path/to/save/generated/samples
You can refer examples in test/test_patch.cc for more details

2.The tools also support write the data into HDF5 database, you can refer the test/test_hdf5.cc to create your HDF5 file

3.You can extract the output from any layer of convolutional neural network(examples at test/test_cnn.cc)

Attentation!!!

For *net_ir1.caffemodel and *net_ir2.caffemodel model, we employ different mean value for normalization
The mean value for ir1 is 17.2196, while for ir2 it is 0, the down scales are same.

stnumber's People

Contributors

codesfarmer avatar

Stargazers

 avatar

Watchers

 avatar

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.