Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to train model with the HME100K dataset? #19

Open
astudent2022 opened this issue Sep 16, 2022 · 8 comments
Open

How to train model with the HME100K dataset? #19

astudent2022 opened this issue Sep 16, 2022 · 8 comments

Comments

@astudent2022
Copy link

Hi@LBH1024,
Can you provide the vocab file used for HME100K dataset?
Besides, how do you split the dataset since there is no validation set?
Thanks.

@LBH1024
Copy link
Owner

LBH1024 commented Sep 16, 2022

Hi, the vocab file can be obtained by counting all the symbol classes that appear in HME100K dataset. More details on how to split the dataset can be found in the paper.

@astudent2022
Copy link
Author

Hi@LBH1024,

based on the details described for HME100K dataset in the paper, I can not reproduce the results. Can you provide more details about the config of optimizer used for HME100K dataset?

Thanks!

@LBH1024
Copy link
Owner

LBH1024 commented Oct 3, 2022

按照以下参数进行训练:

epochs: 90
batch_size: 8
workers: 0
train_parts: 3
valid_parts: 1
valid_start: 0
save_start: 0

optimizer: Adadelta
lr: 1
lr_decay: cosine
eps: 1e-6
weight_decay: 2e-5
beta: 0.9

Repository owner deleted a comment from NicoleSherwood Oct 15, 2022
@Young-1231
Copy link

Hi @LBH1024 .
There are a few Chinese characters in the symbol class of HME100K, do I need to ignore these characters when building the vocab?
Thanks!

@LBH1024
Copy link
Owner

LBH1024 commented Nov 5, 2022

Hi @LBH1024 . There are a few Chinese characters in the symbol class of HME100K, do I need to ignore these characters when building the vocab? Thanks!

These Chinese characters are need to be recognized, so you shouldn't ignore them.

@Young-1231
Copy link

These Chinese characters are need to be recognized, so you shouldn't ignore them.

Thanks

@mrkruk5
Copy link

mrkruk5 commented Nov 29, 2022

Hi @LBH1024, could you please provide the code or a more detailed explanation regarding the pre-processing steps you used on the HME100K dataset for training/inference?

  1. I notice you mention here that the HME100K images can be resized to a height of 120 while keeping the image aspect ratio. Why 120? Do you pad the lower right corner of the smaller images to match the maximum width in the batch as you mention here after resizing?
  2. Do you keep the HME100K images as RGB or do you convert to grayscale or any other format such as bitmap to be consistent with the CROHME dataset?
  3. Do you normalize the images in any way?

Thanks.

@SuperHHzy
Copy link

Hi, how long does it take to train using the HME100K dataset? Can I refer to your training parameters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants