Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / compiler / imgdata2hdf5 / README.md
1 # imgdata2hdf5
2
3 _imgdata2hdf5_ is a tool to convert raw image data (assumed to be pre-processed) to an hdf5 file.
4
5 ## Prerequisite
6 - Raw image data pre-processed for the corresponding DNN model
7 - List of data to convert (saved in the text file)
8 - Python installed with _numpy_ and _h5py_ (See docs/how-to-prepare-virtualenv.txt)
9
10 ## Example
11 ```
12 python imgdata2hdf5.py \
13 > --data_list=tmp/imgdata/datalist.txt
14 > --output_path=tmp/imgdata/imgdata.hdf5
15 ```
16
17 ## Arguments
18 ```
19   -h, --help            Show this help message and exit
20   -l DATA_LIST, --data_list DATA_LIST
21                         Path to the text file which lists the absolute paths of the raw image data files to be converted.
22   -o OUTPUT_PATH, --output_path OUTPUT_PATH
23                         Path to the output hdf5 file.
24 ```