Giter Site home page Giter Site logo

zihaomu / deep-text-recognition-benchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clovaai/deep-text-recognition-benchmark

49.0 49.0 12.0 3.1 MB

Provide the OCR model in ONNX format so that the OpenCV DNN module can use them directly and correctly.

License: Apache License 2.0

Python 10.56% Jupyter Notebook 88.99% C++ 0.44%
ocr opencv

deep-text-recognition-benchmark's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on OpenCV, dnn and inference engine.
  • ๐ŸŒฑ Iโ€™m currently learning NLP.
  • ๐Ÿ“ซ How to reach me: [email protected]

deep-text-recognition-benchmark's People

Contributors

akarazniewicz avatar clovaaiadmin avatar coallaoh avatar edwardpwtsoi avatar gwkrsrch avatar ku21fan avatar sangkwun avatar soonge avatar tgalkovskyi avatar tjdevworks avatar varshaneya avatar yacobby avatar zihaomoo avatar zihaomu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

deep-text-recognition-benchmark's Issues

Use .reshape(...) instead

When I run the example i got the following error. Any ideas?

(ocr) salinas@salinas-HP-Pavilion-Aero-Laptop-13-be0xxx:~/Libraries/deep-text-recognition-benchmark-master$ CUDA_VISIBLE_DEVICES=0 python3 demo.py --Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn --image_folder demo_image/ --saved_model models/TPS-ResNet-BiLSTM-Attn.pth
model input parameters 32 100 20 1 512 256 38 25 TPS ResNet BiLSTM Attn
loading pretrained model from models/TPS-ResNet-BiLSTM-Attn.pth
Traceback (most recent call last):
File "demo.py", line 129, in
demo(opt)
File "demo.py", line 64, in demo
preds = model(image, text_for_pred, is_train=False)
File "/home/salinas/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/salinas/.local/lib/python3.8/site-packages/torch/nn/parallel/data_parallel.py", line 153, in forward
return self.module(*inputs, **kwargs)
File "/home/salinas/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/salinas/Libraries/deep-text-recognition-benchmark-master/model.py", line 89, in forward
contextual_feature = self.SequenceModeling(visual_feature)
File "/home/salinas/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/salinas/.local/lib/python3.8/site-packages/torch/nn/modules/container.py", line 204, in forward
input = module(input)
File "/home/salinas/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(input, **kwargs)
File "/home/salinas/Libraries/deep-text-recognition-benchmark-master/modules/sequence_modeling.py", line 19, in forward
recurrent = recurrent.view(b
T, h)
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

not loaded onnx model from None-VGG-BiLSTM-CTC.pth

i converted from none-VGG-BiLSTM-CTC.pth to none-VGG-BiLSTM-CTC.onnx

but it falied to load from opencn dnn module.

how can i convert to none-VGG-BiLSTM-CTC.pth to none-VGG-BiLSTM-CTC.pth to .onnx file to load opencv module?

python file for inference

I can't seem find the python file that you mentioned text_recog.py, where am I supposed to get that file?

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.