aboutsummaryrefslogtreecommitdiff
path: root/tests/ImageTensorGenerator/README.md
blob: 50e68aa1e721ef0827b31ef1e115431fc9f02d21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# The ImageTensorGenerator

The `ImageTensorGenerator` is a program for generating a .raw tensor file from a .jpg image.

|Cmd:|||
| ---|---|---|
| -h | --help    | Display help messages |
| -i | --infile  | Input image file to generate tensor from |
| -l | --layout  | Output data layout, "NHWC" or "NCHW". Default value: NHWC |
| -o | --outfile | Output raw tensor file path |

Example usage: <br>
<code>./ImageTensorGenerator -i /path/to/image/dog.jpg -l NHWC -o /output/path/dog.raw</code>