4.1. Example 1: Customized ResNet-18 Model
This example removes the last Fully Connected (FC) layer to test if a performance difference exists. The ResNet-18 model is supported by Intel® FPGA AI Suite, but removing the last layer has not been tested. This example does not show how to test the modified model.
The removal is shown as an example only. The performance of this customized model has not been tested or optimized.
- Model: ResNet-18
- Framework: Caffe
This code example shows that the Fully Connected layer was removed from the model. This removal is done by deleting the lines of code from the PROTOTXT (.prototxt) file.
This command runs the OpenVINO™ Model Optimizer and creates three files that are the IR of this customized model: deploy.xml, deploy.mapping, and deploy.bin.