Skip to content

Commit 23b97ef

Browse files
authored
Add examples (luoyetx#24)
* add deep-landmark * optimze pooling layer * clean * move * add generatepb.sh * add wgan example * update wgan * fix
1 parent 3e7fd54 commit 23b97ef

37 files changed

+28478
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ Install Java and set environment variable `JAVA_HOME`. Run CMake command below.
7979
$ cmake .. -DUSE_JAVA=ON
8080
```
8181

82-
### Embed Mini-Caffe
82+
### How to use Mini-Caffe
8383

84-
To use Mini-Caffe as a library, you may refer to [mini-caffe-example](https://github.com/luoyetx/mini-caffe-example).
84+
To use Mini-Caffe as a library, you may refer to [example](example).

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

example/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
project(MiniCaffe-Examples)
2+
cmake_minimum_required(VERSION 2.8)
3+
4+
find_package(OpenCV REQUIRED)
5+
include(../mini-caffe.cmake)
6+
7+
add_executable(deeplandmark deeplandmark/landmark.hpp deeplandmark/landmark.cpp deeplandmark/main.cpp)
8+
target_link_libraries(deeplandmark caffe ${OpenCV_LIBS})
9+
10+
add_executable(wgan wgan/main.cpp)
11+
target_link_libraries(wgan caffe ${OpenCV_LIBS})

example/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Mini-Caffe-Examples
2+
==================
3+
4+
Projects use Mini-Caffe as a C++ library to run CNNs.
5+
6+
### deeplandmark
7+
8+
Detect facial landmarks with Mini-Caffe. Caffe models are trained by [luoyetx/deep-landmark](https://github.com/luoyetx/deep-landmark). A video test can be viewed [here](https://youtu.be/oNiAtu0erEk).
9+
10+
### G in WGAN
11+
12+
Generate anime face using WGAN. Model is trained by [luoyetx/WGAN](https://github.com/luoyetx/WGAN) and converted to Caffe model.
13+
14+
### Build
15+
16+
You need [OpenCV](http://opencv.org/) to build examples.
17+
18+
```
19+
$ mkdir build
20+
$ cd build
21+
$ cmake ..
22+
```

0 commit comments

Comments
 (0)