Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.21 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.21 KB

Convolutional Character Networks

This project hosts the testing code for CharNet, described in paper:

Convolutional Character Networks
Linjie Xing, Zhi Tian, Weilin Huang, and Matthew R. Scott;
In: Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.

I also added Fast Non-Maximum Suppression algorithm written in C++ and exported to dll to replace current vanilla postprocess (speedup ~30x) and made some code refactoring and added possibility to apply specified preprocess from a config.

The code for my Fast NMS algorithm is in the other repo: repo_link.

How to

pip install -r requirements.txt
python setup.py build develop
pip install [torch, torchivsion]
  1. For some config, please run the following command line in config dir. Please replace images_dir with the directory testing images. The results will be in results_dir.

    python predict.py configs/<some_config>.yaml <images_dir> <results_dir>
    
  2. If there is WinError for importing a module *.dll it means that you don't have the C++ runtime available, to do so install vcredist or set USE_CPP flag to False in config