https://github.com/chapzq77/moran_v2

MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition

https://github.com/chapzq77/moran_v2

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org, sciencedirect.com
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition

Basic Info
  • Host: GitHub
  • Owner: chapzq77
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 2.61 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of Canjie-Luo/MORAN_v2
Created over 7 years ago · Last pushed over 7 years ago

https://github.com/chapzq77/MORAN_v2/blob/master/

# MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition

![](https://img.shields.io/badge/version-v2-brightgreen.svg)

MORAN is a network with rectification mechanism for general scene text recognition. The paper (accepted to appear in Pattern Recognition, 2019) in [arXiv](https://arxiv.org/abs/1901.03003), [online](https://www.sciencedirect.com/science/article/pii/S0031320319300263?via%3Dihub) version is available now.

[Here is a brief introduction in Chinese.](https://mp.weixin.qq.com/s/XbT_t_9C__KdyCCw8CGDVA)

![](demo/MORAN_v2.gif)

## Improvements of MORAN v2:

- More stable rectification network for one-stage training
- Replace VGG backbone by ResNet
- Use bidirectional decoder (a trick borrowed from [ASTER](https://github.com/bgshih/aster))

| 
Version
|
IIIT5K
|
SVT
|
IC03
|
IC13
|
SVT-P
|
CUTE80
|
IC15 (1811)
|
IC15 (2077)
| | :---: | :---: | :---: | :---:| :---:| :---:| :---:| :---:| :---:| | MORAN v1 (curriculum training)\* |
91.2
|
**88.3**
|
**95.0**
|
92.4
|
76.1
|
77.4
|
74.7
|
68.8
| |
MORAN v2 (one-stage training)
|
**93.4**
|
**88.3**
|
94.2
|
**93.2**
|
**79.7**
|
**81.9**
|
**77.8**
|
**73.9**
| \*The results of v1 were reported in our paper. If this project is helpful for your research, please [cite](https://github.com/Canjie-Luo/MORAN_v2/blob/master/README.md#citation) our Pattern Recognition paper. ## Requirements (Welcome to develop MORAN together.) - [PyTorch](https://pytorch.org/) 0.3.* - [TorchVision](https://pypi.org/project/torchvision/) - [Python](https://www.python.org/) 2.7.* - [OpenCV](https://opencv.org/) 2.4.* - [PIL (Pillow)](https://pillow.readthedocs.io/en/stable/#) Use [pip](https://pypi.org/project/pip/) to install the following libraries. ```bash pip install -r requirements.txt ``` - [Colour](https://pypi.org/project/colour/) - [LMDB](https://pypi.org/project/lmdb/) - [matplotlib](https://pypi.org/project/matplotlib/) ## Data Preparation Please convert your own dataset to **LMDB** format by using the [tool](https://github.com/bgshih/crnn/blob/master/tool/create_dataset.py) provided by [@Baoguang Shi](https://github.com/bgshih). You can also download the training ([NIPS 2014](http://www.robots.ox.ac.uk/~vgg/data/text/), [CVPR 2016](http://www.robots.ox.ac.uk/~vgg/data/scenetext/)) and testing datasets prepared by us. - [about 20G training datasets and testing datasets in **LMDB** format](https://pan.baidu.com/s/1TqZfvoEhyv57yf4YBjSzFg), password: l8em The raw pictures of testing datasets can be found [here](https://github.com/chengzhanzhan/STR). ## Training and Testing Modify the path to dataset folder in `train_MORAN.sh`: ```bash --train_nips path_to_dataset \ --train_cvpr path_to_dataset \ --valroot path_to_dataset \ ``` And start training: (manually decrease the learning rate for your task) ```bash sh train_MORAN.sh ``` ## Demo Download the model parameter file `demo.pth`. - [BaiduYun](https://pan.baidu.com/s/1TqZfvoEhyv57yf4YBjSzFg) (password: l8em) - [Google Drive](https://drive.google.com/file/d/1IDvT51MXKSseDq3X57uPjOzeSYI09zip/view?usp=sharing) - [OneDrive](https://1drv.ms/u/s!Am3wqyDHs7r0hkAl0AtRIODcqOV3) Put it into root folder. Then, execute the `demo.py` for more visualizations. ```bash python demo.py ``` ![](demo/demo.png) ## Citation ``` @article{cluo2019moran, author = {Canjie Luo, Lianwen Jin, Zenghui Sun}, title = {MORAN: A Multi-Object Rectified Attention Network for Scene Text Recognition}, journal = {Pattern Recognition}, volume = {}, number = {}, pages = {}, year = {2019}, } ``` ## Acknowledgment The repo is developed based on [@Jieru Mei's](https://github.com/meijieru) [crnn.pytorch](https://github.com/meijieru/crnn.pytorch) and [@marvis'](https://github.com/marvis) [ocr_attention](https://github.com/marvis/ocr_attention). Thanks for your contribution. ## Attention The project is only free for academic research purposes.

Owner

  • Name: 周奇
  • Login: chapzq77
  • Kind: user

GitHub Events

Total
Last Year