nickliqian / cnn_captcha

use cnn recognize captcha by tensorflow. 本项目针对字符型图片验证码,使用tensorflow实现卷积神经网络,进行验证码识别。
Apache License 2.0
2.76k stars 783 forks source link

Performance issue in the program #191

Open DLPerf opened 3 years ago

DLPerf commented 3 years ago

Hello, I found a performance issue in the definition of test_batch, test_batch.py, tf.argmax and tf.reshape will created repeatedly during program execution, resulting in reduced efficiency. I think they should be created before the loop test_batch.

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

DLPerf commented 3 years ago

@nickliqian Hi, my friend, could you consider my issue?