This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
products:sbc:vim4:npu:demos:facenet [2024/01/04 05:22] louis |
products:sbc:vim4:npu:demos:facenet [2024/01/04 21:24] (current) louis old revision restored (2023/09/20 01:13) |
||
---|---|---|---|
Line 88: | Line 88: | ||
--dtypes " | --dtypes " | ||
--inference-input-type float32 \ | --inference-input-type float32 \ | ||
- | --inference-output-type float32 \ | + | --inference-output-type float32 \ |
--quantize-dtype int8 --outdir onnx_output | --quantize-dtype int8 --outdir onnx_output | ||
--channel-mean-value " | --channel-mean-value " | ||
--source-file facenet_dataset.txt | --source-file facenet_dataset.txt | ||
- | --iterations | + | --iterations |
--disable-per-channel False \ | --disable-per-channel False \ | ||
--batch-size 1 --target-platform PRODUCT_PID0XA003 | --batch-size 1 --target-platform PRODUCT_PID0XA003 | ||
``` | ``` | ||
- | |||
- | <WRAP important > | ||
- | Please prepare about 500 pictures for quantification. If the pictures size is smaller than model input size, please resize pictures to input size before quantification. | ||
- | </ | ||
Run '' | Run '' | ||
Line 116: | Line 112: | ||
$ git clone https:// | $ git clone https:// | ||
``` | ``` | ||
- | |||
- | <WRAP important > | ||
- | If your kernel version is 5.4 or earlier, please use tag '' | ||
- | </ | ||
==== Install dependencies ==== | ==== Install dependencies ==== |