Closed gussmith closed 4 years ago
Yes, the inference.py
process an image now.
OK.I will change it back in my branch then. I found it more useful to have the possibility to run through a series of images in a directory than one image at a time. If one wants to test only one image, it is always possible to place only one image in a directory. The reverse is not true though... Regardless, thanks for making this available!
I have added this feature. Now inference.py
support both dir path and file path
vedastr$ python tools/inference.py configs/small_satrn.py pretrained/Small-SATRN.pth ../../data/ICDAR15-Word_Recognition/ch4_test_word_images_gt