Giter Site home page Giter Site logo

caffe2onnx's Introduction

caffe2onnx

This tool converts Caffe models to ONNX via command line (without Caffe environment).

Introduction

caffe2onnx is based on previous work by htshinichi.

This is the second version of converting caffe model to onnx model. In this version, all the parameters will be transformed to tensor and tensor value info when reading .caffemodel file and each operator node is constructed directly into the type of NodeProto in onnx.

Installation

Install from pypi

pip install caffe2onnx

Install latest from github

pip install git+https://github.com/asiryan/caffe2onnx

Build and install latest from source

git clone https://github.com/asiryan/caffe2onnx
python setup.py install

Usage

To get started with caffe2onnx, run the caffe2onnx.convert command, providing:

  • the path to your caffe prototxt,
  • the path to your caffe model (not required),
  • the output path of the onnx model (not required),
  • frozen graph or not (not required).
python -m caffe2onnx.convert
    --prototxt          caffe's prototxt file path
    [--caffemodel       caffe's caffemodel file path]
    [--onnx             output onnx file path]
    [--frozen           frozen graph or not]

Operators

  • BatchNorm
  • Convolution
  • Deconvolution
  • Concat
  • Dropout
  • InnerProduct (Reshape + Gemm)
  • LRN
  • Pooling
  • Unpooling
  • ReLU
  • Softmax
  • Eltwise
  • Upsample
  • Scale

Models

  • ResNet
  • AlexNet
  • AgeNet
  • Yolo V3
  • VGG
  • GoogleNet
  • CaffeNet
  • Sphereface

License

BSD-3

caffe2onnx's People

Contributors

asiryan avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.