GithubHelp home page GithubHelp logo

yiyangcai / crnn-pytorch2tensorrt-via-onnx Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 6.0 29.69 MB

the repository is about the conversion of CRNN model, which is widely used for text recognition. the CRNN model is converted from PyTorch to TensorRT via ONNX

Python 100.00%

crnn-pytorch2tensorrt-via-onnx's People

Contributors

yiyangcai 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

Watchers

 avatar

crnn-pytorch2tensorrt-via-onnx's Issues

tensorrt run error

Hi, thanks for your work!
I have some problems. When I ran 'pytorch2onnx.py', it worked! But I failed when running onnx2tensorort.py.
[TensorRT] ERROR: (Unnamed Layer* 144) [Slice]: slice size must be positive, size = [0,0,0]
[TensorRT] ERROR: (Unnamed Layer* 145) [Slice]: slice size must be positive, size = [0,0,0]

[TensorRT] ERROR: (Unnamed Layer* 316) [Slice]: slice size must be positive, size = [0,0,0]
[TensorRT] ERROR: (Unnamed Layer* 317) [Slice]: slice size must be positive, size = [0,0,0]

I've tried to print shape of the output. It's shown as : the final shape:(26, 1, 37)

I've tested on different versions of pytorch: 1.2, 1.3.1 ,1.4, they all failed.

Looking forward to your reply!

the tensorrt is slow than pytorch

Thank you for this wonderful project.
But I met a problem in python api of tensorrt to inference the model which is trained on pytorch.
I found the speed is slower in tensorrt than pytorch.
Like this project, I have 7226 classes of char, so the speed is 2.9ms/pic (32*100) in tensorrt (if dynamic input, the speed is 9ms/pic) . But when I test the same picture in pytorch(pytorch is dynamic input), it show only 3ms/pic.
Have you test the speed in pytorch?

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.