Git Product home page Git Product logo

2023-tcsvt-tean's Introduction

This is the pytorch implementation of the paper (accpted by IEEE TCSVT 2023).

Train and Test

download the Aster model from https://github.com/ayumiymk/aster.pytorch, Moran model from https://github.com/Canjie-Luo/MORAN_v2, CRNN model from https://github.com/meijieru/crnn.pytorch.

Change TRAIN.VAL.rec_pretrained in src/configs/super_resolution.yaml to your Aster model path, change TRAIN.VAL.moran_pretrained to your MORAN model path and change TRAIN.VAL.crnn_pretrained to your CRNN model path.

Change TRAIN.train_data_dir0 to your train data path. Change TRAIN.VAL.val_data_dir0 to your val data path.

  • train with textzoom

cd ./src/

python3 main.py --batch_size=30 --STN --mask --gradient --vis_dir='demo1'

  • test with textzoom

python3 main.py --batch_size=1024 --test --test_data_dir='your-test-lmdb-dataset' --resume='your-model.pth' --STN --mask --gradient --vis_dir='vis'

  • demo with images

python3 main.py --demo --demo_dir='./images/' --resume='your-model.pth' --STN --mask

If you have any question, please contact us without hesitation.

If you find TEAN useful in your research, please consider citing.

@ARTICLE{10102515, author={Shu, Rui and Zhao, Cairong and Feng, Shuyang and Zhu, Liang and Miao, Duoqian}, journal={IEEE Transactions on Circuits and Systems for Video Technology}, title={Text-Enhanced Scene Image Super-Resolution via Stroke Mask and Orthogonal Attention}, year={2023}, volume={33}, number={11}, pages={6317-6330}, doi={10.1109/TCSVT.2023.3267133}}

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.