Imported Upstream version 1.4.0
[platform/core/ml/nnfw.git] / compiler / nnc / utils / caffe_model_maker / README.md
1 # Utils
2 Caffe model generation helpers
3
4 REQUIRES:
5
6 * caffe
7 * h5py
8 * lmdb
9 * numpy
10 * caffegen in `$PATH`
11
12 `GenerateCaffeModels.py` creates `*.prototxt` files for 1 and 2 layer caffe models
13 The generator can create multiple examples of any layer, assuming you add a
14 `how_many` field into the layer's dict. You will also need to replace the constants in said dict with `PH(type, param)` values, where `type` is the type of the placeholder variable
15 and `params` is a list (or tuple) of paramenters for generating the mock.
16
17 For an example of generating multiple instances of a layer see the `Log` layer. 
18
19 `Filler.sh`  fills a single model with random weights by using `caffegen` and creates a dir with a filled `prototxt` and a `caffemodel` binary file. The result directory is located in the same directory as the `prototxt` file
20
21 `AllFill.sh` fills all `*.prototxt` files in the current directory or in provided directory
22 (-d)