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.
pip install -r requirements.txt
python setup.py build develop
pip install [torch, torchivsion]
-
For
some config
, please run the following command line inconfig
dir. Please replaceimages_dir
with the directory testing images. The results will be inresults_dir
.python predict.py configs/<some_config>.yaml <images_dir> <results_dir>
-
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 toFalse
in config