ResNet50 Example Code
The NPU ResNet50 example directory (npu_resnet50_sample
) mainly includes example code for calling NPU Runtime interfaces, as well as model directories, binary programs: src
and models
, bin
.
Installing ResNet50 Example
sudo apt install es-sdk-sample-npu-resnet50
After installation, the sample is located in the /opt/eswin/sample-code/npu_sample/npu_resnet50_sample
directory.
Directory Structure
The detailed directory structure is as follows:
debian@rockos-eswin:/opt/eswin/sample-code/npu_sample/npu_resnet50_sample$ tree
.
├── bin
│ └── sample_npu
├── models
│ └── resnet50
│ ├── es_resnet50_classes.txt
│ ├── es_resnet50_post_process.json
│ ├── es_resnet50_pre_process.json
│ ├── git_resnet50_mix_4x3x224x224_dyn_latency.model
│ ├── git_resnet50_mix_4x3x224x224_dyn_latency.ofmap_order.txt
│ ├── git_resnet50_mix_4x3x224x224_dyn.model
│ ├── git_resnet50_mix_4x3x224x224_dyn_throughput.model
│ ├── git_resnet50_mix_4x3x224x224_dyn_throughput.ofmap_order.txt
│ ├── input
│ │ └── pictures
│ │ └── input0
│ │ ├── ILSVRC2012_val_00003966.JPEG
│ │ ├── ILSVRC2012_val_00009032.JPEG
│ │ ├── ILSVRC2012_val_00011712.JPEG