handwritten-chinese-ocr-samples icon indicating copy to clipboard operation
handwritten-chinese-ocr-samples copied to clipboard

Can't show the result

Open alice1222 opened this issue 4 years ago • 4 comments

Hi Thank you for providing this great work. I have some problem about the result, hope you can help me. I use "deploy.py" to test image from SCUT-EPT. Although the code can run,but didn't show anything. I am very confused about which step I did wrong 擷取 .

thank you

alice1222 avatar Oct 05 '21 03:10 alice1222

Sorry for the trouble. We did not provide the interface to handle different inputs, but just remind it in README.md.

Please note that if you run the deploy.py for SCUT-EPT images, you need to comment out the "Normalize" part at line 167 in the preprocess_input function:

# Normalize
norm_img = (pad_img - 127.5) / 127.5

which means the data preprocess within training and inference stage must be kept in consistent.

bliu3650 avatar Oct 05 '21 11:10 bliu3650

Hello, I have the same problem as the friend mentioned in the first floor which is the '' result of inference. And when I comment out the "Normalize" part at line 167 in the preprocess_input function like this, it can show the different result but not the right answer. image The test image is yours. image And the prediction is this. image By the way, I use your pretrained model downloaded with the openvino tool. What's wrong with that?I need your help. Thanks a lot!

Xsyuan7918 avatar Jan 21 '22 06:01 Xsyuan7918

@Xsyuan7918 please check and use the dictionary for SCUT_EPT dataset first. https://github.com/openvinotoolkit/open_model_zoo/blob/master/data/dataset_classes/scut_ept.txt

bliu3650 avatar Jan 21 '22 06:01 bliu3650

@Xsyuan7918 please check and use the dictionary for SCUT_EPT dataset first. https://github.com/openvinotoolkit/open_model_zoo/blob/master/data/dataset_classes/scut_ept.txt

Problem solved.Appreciate so much!

Xsyuan7918 avatar Jan 21 '22 06:01 Xsyuan7918