Tim M 57b5cefde5 Updated all `.md` files to contain newest image hace 2 años
..
PyTorch_Inference.ipynb 041ff9fd54 PyTorch inference using ONNX and Caffe2 hace 5 años
PyTorch_to_ONNX_for_Inference.ipynb dc512d66dc cleaning up hace 5 años
README.md 57b5cefde5 Updated all `.md` files to contain newest image hace 2 años
environment.yml ba0c757dba added torch summary hace 5 años
giraffe.jpg 041ff9fd54 PyTorch inference using ONNX and Caffe2 hace 5 años

README.md

PyTorch Model Inference using ONNX and Caffe2

This repository contains the code for PyTorch Model Inference using ONNX and Caffe2 blog post.

download

We show how to do inference with a PyTorch model using ONNX and Caffe2.

Dependencies

torch
torchvision
onnx

Create conda environment

conda env create -f environment.yml

Download models

The required models can be downloaded from the following links: Animals Caltech

Activate conda environment

conda activate pytorch_inference

Outline

The enclosed notebook lets you

  1. Export the PyTorch .pt model to ONNX model
  2. Use the ONNX model for inference in Caffe2

More details can be found in the blog

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.