Closed saharudra closed 6 years ago
how many different characters do you want to distinguish?
How many outputs does your last Linear
layer have?
If those numbers are not the same you should get an error like that. It tells you that you predicted a class (in this case 109
) that is not contained in the char_map
.
We are trying to distinguish between 57 + 1 blank character. The last Linear layer has 58 outputs. However, this error still occurs.
Initially, I thought that this might be due to incorrect char_map
but I think I have used it correctly.
The following is the char_map
that we are using. I think it is the correct format.
{
"0":122,
"1":40,
"2":121,
"3":95,
"4":58,
"5":35,
"6":163,
"7":100,
"8":106,
"9":39,
"10":34,
"11":112,
"12":56,
"13":49,
"14":41,
"15":103,
"16":42,
"17":104,
"18":38,
"19":55,
"20":53,
"21":36,
"22":52,
"23":102,
"24":48,
"25":32,
"26":116,
"27":98,
"28":118,
"29":109,
"30":37,
"31":111,
"32":114,
"33":99,
"34":110,
"35":63,
"36":107,
"37":105,
"38":54,
"39":47,
"40":120,
"41":113,
"42":50,
"43":115,
"44":33,
"45":57,
"46":64,
"47":119,
"48":8364,
"49":46,
"50":45,
"51":117,
"52":101,
"53":231,
"54":97,
"55":174,
"56":108,
"57":51
}
yeah, that looks good and sounds right.
Did you check your groundtruth? Do your labels contain numbers that are smaller than 57
everytime?
We were able to get it to work. The problem was with the ground truth format.
Can you suggest some ways of making sure whether the ground truth alignment is correct? Currently we are thinking of just looking at validation output over training.
That's a very good question. I already had a look at the bboxes predicted by the model for every iteration of the training. This always gave me good intuition, whether there might be problems or not...
Thanks for the suggestion.
I have written a medium draft on the paper and would love to hear any suggestions that you might have to improve it or make it clear.
that's a nice article. I like the article and think it is quite clear and concise.
how many different characters do you want to distinguish? How many outputs does your last
Linear
layer have?If those numbers are not the same you should get an error like that. It tells you that you predicted a class (in this case
109
) that is not contained in thechar_map
.
but our char map does not contains that class still why it is predicted and if our predicted class conains only alpha numeric labels then what changes need to do, please help me as I am completely new in neural network and Deep Learning stuff.
I was able to get the code to train on the provided datasets. I created the char map and followed the procedure based on other issues, mostly #13, to train on my own dataset but I am facing the following error.
Thanks