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

When reducing the training set characters, an error is reported: #32

Open
jingmingtao opened this issue Nov 14, 2023 · 3 comments
Open

Comments

@jingmingtao
Copy link

When reducing the training set characters, an error is reported: File "/home/jmt/MXfont/mxfont-main/trainer/trainer_utils.py", line 101, in expert_assign r_in, c_in = linear_sum_assignment(prob_in)
ValueError: matrix contains invalid numeric entrie.

There should be a free data matrix, but increasing the batchsize will not cause an error, but I don't want to increase the batchsize. May I ask if there is any solution available

@jingmingtao
Copy link
Author

My data is fine, it only uses 556 characters. May I ask what is causing this? I have been locating it for a long time and cannot solve it. Can you provide the following assistance

@8uos
Copy link
Collaborator

8uos commented Nov 21, 2023

It seems that the training is unstable. "ValueError: matrix contains invalid numeric entrie." means that the input contains NaN, which can caused by various factors. I cannot know what the reason exactly is, but I guess using less characters than our setting may cause unstable training.

@jingmingtao
Copy link
Author

jingmingtao commented Nov 21, 2023 via email

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

2 participants