Closed trantuankhoi closed 5 months ago
Hi @Topdu, can you take a look here pls? Thanks in advance
checking the following config is right, pls:
learning_rate: 0.000375 # if using small batchsize, lr should be demoted.
ignore_index: &ignore_index 100 # must be greater than the number of character classes
- SVTRRecResizeImg:
image_shape: [3, 32, 768]
padding: False # should be True according to eval config
local_mixer: [[7, 11], [7, 11], [7, 11]] # should be [[5, 5], [5, 5], [5, 5]] if using Conv mixer
Thanks for your reply and suggestions
My batchsize is 96, so I will set the lr = 0.000046875 (based on the paper).
About my language dictionary, it has 233 characters, so I will set ignore_index: &ignore_index 234
from now. But I also used ignore_index 100
for my base config and it works, although I dont know why.
The other configs are correct for me. Any notes for head'config which I missed, pls
head'config which is correct and lr may be too small and should be set no less than 0.0001 from experience. local_mixer: [[7, 11], [7, 11], [7, 11]] # should be [[5, 5], [5, 5], [5, 5]] if using Conv mixer
Thanks a lot. I will experience one more time follow your suggestions
Hi @Topdu
I'm currently training the SVTR_CPPD (base) model and noticed that the train/loss_edge
metric is significantly higher than the train/loss_node
metric. I'm not sure if this is normal behavior, and I was curious to see if you observed this phenomenon in your experiments as well.
Yes! This phenomenon in ours experiments as well.
I have successfully trained the SVTR-CPPD (base version) model and achieved excellent results. However, I would like to improve the metrics further, so I am experimenting with SVTR-large as the backbone. I have tried searching and applying other SVTR-large (original) configs like here, but the accuracy is still 0% after a period of training. In the same time frame, SVTR-base has reached about 10%. I think the problem lies in the head config. If anyone has tried SVTR-CPPD (large) before, could you let me know if I have any wrong configs?
My config here: