meijieru / crnn.pytorch

Convolutional recurrent network in pytorch
MIT License
2.4k stars 657 forks source link

eval mode has bad performance 测试与训练模式性能差别很大 #230

Open woodyyyyyyyy opened 4 years ago

woodyyyyyyyy commented 4 years ago

during training, the train accuracy was 96% or higher, the eval accuracy was only 10%. Finally,for a single picture, the train mode will predict the length well even though it shouldn't be accurate. However, for this picture , the eval mode will only predict one character maybe not. I use nn.CTCLoss, and my char_set has numbers, letters, and 6 Chinese characters. 训练模式有很高准确率,验证模式准确率很低。测试一张图片无论是验证集还是测试集,训练模式最起码位数差不多,但是验证模式只能有一两个预测。

woodyyyyyyyy commented 4 years ago

感谢回复,thanks

chnzhero commented 4 years ago

运行环境是linux还是win啊请问大佬

woodyyyyyyyy commented 4 years ago

萌新用的是win