Git Product home page Git Product logo

caffe2onnx's Introduction

caffe2onnx

Supported layers

  • Convolution
  • DepthwiseConvolution
  • BatchNorm
  • Scale
  • ReLU
  • Pooling
  • Eltwise
  • InnerProduct
  • Softmax
  • Sigmoid
  • Concat
  • Deconvolution
  • Reshape
  • Permute
  • Scale
  • Log
  • Power
  • Bnll
  • Selu
  • Sqrt
  • Cos
  • CRelu
  • Abs
  • Exp
  • TanH
  • Tile
  • PReLU
  • Sin
  • Slice
  • ReLU6
  • ELU
  • Upsample
  • UpsampleBN
  • Flatten
  • Squeeze
  • Transpose
  • Lstm
  • Gru

Tested models

  • Resnet-18
  • Resnet-50
  • Mobilenet-v1
  • Mobilenet-v2
  • Yolov5

caffe2onnx's People

Contributors

inisis avatar zhiqwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

caffe2onnx's Issues

mobilenet caffe2onnx error

Traceback (most recent call last):
File "caffe2onnx.py", line 32, in
main()
File "caffe2onnx.py", line 28, in main
convert(args)
File "caffe2onnx.py", line 21, in convert
converter.run()
File "/workspace/caffe2onnx-main/converter/onnx/caffe_parser.py", line 986, in run
checker.check_model(self.model_def)
File "/root/anaconda3/lib/python3.6/site-packages/onnx/checker.py", line 105, in check_model
C.check_model(protobuf_string)
onnx.onnx_cpp2py_export.checker.ValidationError: Mismatched attribute type in 'relu1 : alpha'

==> Context: Bad node spec for node. Name: relu1 OpType: LeakyRelu

Missing libprotobuf error

I have a caffe distribution that has all of the layers that are in your module.
I have succesfully bulit caffe and pycaffe for that build.
I set the CAFE_ROOT and PYTHONPATH variables to point to my build.

When I run:
python caffe2onnx.py deploy.prototxtmodel_caffemodel onnx_name,
I get:
Traceback (most recent call last):
File "caffe2onnx.py", line 3, in
from converter.onnx.caffe_parser import caffe2onnx_converter
File "/home/mkraus/caffe2onnx/converter/onnx/caffe_parser.py", line 7, in
import caffe
File "/home/mkraus/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/mkraus/caffe/python/caffe/pycaffe.py", line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: libprotobuf.so.9: cannot open shared object file: No such file or directory

If I don't set PYTHONPATH, I get a 'can't import caffe' error.

I tried running the model examples, these failed too. Please help

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.