Skip to content

Commit

Permalink
Add a note for warpctc's example 'python lstm_ocr.py' (apache#4133)
Browse files Browse the repository at this point in the history
* Update README.md

Add a note for lstm_ocr.py file.

* Update README.md

Add note.
  • Loading branch information
BobLiu20 authored and piiswrong committed Dec 11, 2016
1 parent 5b6a0ee commit 9622714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/warpctc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ I implement two examples, one is just a toy example which can be used to prove c
cd examples/warpctc
python lstm_ocr.py
```
Note:
* Please modify ```contexts = [mx.context.gpu(1)]``` in this file according to your hardware. If you only have one GPU pelase change 1 to 0(which GPU is selected.)
* Please copy your font file to current folder. And instend of './data/Xerox.ttf' by your font file name. Maybe you can get a font from /usr/share/fonts/truetype/ in ubuntu.

The OCR example is constructed as follows:

Expand Down

0 comments on commit 9622714

Please sign in to comment.