This repository contains the code for PyTorch Model Inference using ONNX and Caffe2 blog post.
We show how to do inference with a PyTorch model using ONNX and Caffe2.
torch
torchvision
onnx
conda env create -f environment.yml
The required models can be downloaded from the following links: Animals Caltech
conda activate pytorch_inference
The enclosed notebook lets you
- Export the PyTorch .pt model to ONNX model
- Use the ONNX model for inference in Caffe2
More details can be found in the blog
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.