Skip to content

Commit 6f776c8

Browse files
dzakharipozdnov
authored andcommitted
Basic Readme for Cifar-10 tutorial scripts
1 parent ca3b695 commit 6f776c8

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

examples/example_cifar10_caffe/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ configuration define and listed in table below. Before compiling application for
114114

115115
| Data | MODEL_BIT_DEPTH=8 | MODEL_BIT_DEPTH=816 | MODEL_BIT_DEPTH=16 |
116116
| :----------------------------------------------------: | :-------------------: | :-------------------: | :------------------: |
117-
| Weights <br/>*.mli_model* and *mli_model_p2 * sections | 33212 bytes | 33212 bytes | 66420 bytes |
118-
| Activations 1 <br/>*.Zdata * section | 32768 bytes | 65536 bytes | 65536 bytes |
119-
| Activations 2 <br/>*.Ydata * section | 8192 bytes | 16384 bytes | 16384 bytes |
117+
| Weights <br/>*.mli_model* and *mli_model_p2* sections | 33212 bytes | 33212 bytes | 66420 bytes |
118+
| Activations 1 <br/>*.Zdata* section | 32768 bytes | 65536 bytes | 65536 bytes |
119+
| Activations 2 <br/>*.Ydata* section | 8192 bytes | 16384 bytes | 16384 bytes |
120120
| Structures <br/>*.mli_data* section | 384 bytes | 384 bytes | 384 bytes |
121121

122122
By default, application uses MODEL_BIT_DEPTH=16 mode. Application code size depends on target hardware configuration and compilation flags. MLI Library code is wrapped into mli_lib section.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Model Deployment Tutorial for Caffe and CIFAR-10: Scripts
2+
==================================================
3+
4+
This folder contains python scripts to reflect deployment process described in the
5+
[heading tutorial](https://embarc.org/embarc_mli/doc/build/html/Examples_Tutorials/Examples_Tutorials.html#model-deployment-tutorial-for-caffe-and-cifar-10).
6+
7+
### Requirements
8+
9+
- Python (tested for 3.7 and 2.7)
10+
- Caffe (Python module must be installed and available in environment)
11+
- lmdb
12+
- numpy
13+
14+
### Quick start
15+
16+
Main entry point is ``deployment_main.py`` script. To print available options run:
17+
18+
python deployment_main.py --help
19+
20+
Caffe standard Cifar-10 tutorial provides tool for CIFAR-10 dataset transformation into LMDB form. User must provide paths to these folders for proper inference time data definition.
21+
22+
python deployment_main.py --lmdb_data_dir=<Path>
23+
24+
### Structure
25+
26+
``README.md`` - This File
27+
``cifar10_small.prototxt`` - Structure of trained model
28+
``cifar10_small.caffemodel.h5`` - Caffe Model with coefficients trained on CIFAR-10 dataset
29+
``deployment_main.py`` - Main script
30+
``deployment_steps.py`` - Deployment steps implemented in a set of functions
31+
``mli_fxtools.py`` - Helper classes for accounting statistics and quantization
32+
33+
34+
### Details
35+
36+
For more information see:
37+
1. [Model Deployment Tutorial for Caffe and CIFAR-10](https://embarc.org/embarc_mli/doc/build/html/Examples_Tutorials/Examples_Tutorials.html#model-deployment-tutorial-for-caffe-and-cifar-10)
38+
2. Python code which is well documented
39+

0 commit comments

Comments
 (0)