This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim3:npu:ksnn:ksnn-convert [2025/09/12 01:40] nick |
products:sbc:vim3:npu:ksnn:ksnn-convert [2025/09/14 23:42] (current) nick |
||
---|---|---|---|
Line 28: | Line 28: | ||
```shell | ```shell | ||
$ cd aml_npu_sdk/ | $ cd aml_npu_sdk/ | ||
- | $ wget https:// | + | $ wget https:// |
``` | ``` | ||
Line 36: | Line 36: | ||
# uint8 | # uint8 | ||
$ ./convert --model-name mobilenet_ssd \ | $ ./convert --model-name mobilenet_ssd \ | ||
- | > --platform tensorflow \ | + | --platform tensorflow \ |
- | > --model | + | |
- | > --input-size-list ' | + | |
- | > --inputs FeatureExtractor/ | + | |
- | > --outputs "' | + | |
- | > --mean-values '127.5 127.5 127.5 0.007843137' | + | |
- | > --quantized-dtype asymmetric_affine \ | + | |
- | > --source-files ./ | + | |
- | > --kboard VIM3 --print-level 0 | + | |
# int8 | # int8 | ||
$ ./convert --model-name mobilenet_ssd \ | $ ./convert --model-name mobilenet_ssd \ | ||
- | > --platform tensorflow \ | + | --platform tensorflow \ |
- | > --model | + | |
- | > --input-size-list ' | + | |
- | > --inputs FeatureExtractor/ | + | |
- | > --outputs "' | + | |
- | > --mean-values '127.5 127.5 127.5 0.007843137' | + | |
- | > --quantized-dtype dynamic_fixed_point \ | + | |
- | > --qtype int8 \ | + | |
- | > --source-files ./ | + | |
- | > --kboard VIM3 --print-level 0 | + | |
# int16 | # int16 | ||
$ ./convert --model-name mobilenet_ssd \ | $ ./convert --model-name mobilenet_ssd \ | ||
- | > --platform tensorflow \ | + | --platform tensorflow \ |
- | > --model | + | |
- | > --input-size-list ' | + | |
- | > --inputs FeatureExtractor/ | + | |
- | > --outputs "' | + | |
- | > --mean-values '127.5 127.5 127.5 0.007843137' | + | |
- | > --quantized-dtype dynamic_fixed_point \ | + | |
- | > --qtype int16 \ | + | |
- | > --source-files ./ | + | |
- | > --kboard VIM3 --print-level 0 | + | |
``` | ``` | ||