-
Notifications
You must be signed in to change notification settings - Fork 23
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
Training interrupted by validation #24
Comments
Hi, I checked the error and updated the code. |
Thank you for your help, It's a great job. But I have other questions. (1) issue #1 you mentioned that the dataset is 6,654 * 482 = 3,207,228. You used 6654 * 371 for training and 15 * (2615 + 280) for validation evaluation. Is this correct for me to understand? (2) the content font is not included in the training and test sets (train.json and test.json), you only configured it in cfgs(0250_simple). Does the content font only need to be written to lmdb via meta_file and not appear in train.json ? |
(1) It is almost right but the training dataset does not contain exactly that number of images. (2) It is right. The content font does not appear in train.json because it should be excluded from the reference styles of training and test sets. However, it still needs to be written to lmdb to render source images. |
Sorry to bother you again, there seems to be a problem with the code in evaluator.py. I am now valid that all fonts in the set generate the same image. Lines 71-72 of the code should probably be changed to the following: Maybe there's something wrong with my modifications, too, but that's where the problem should be. |
Lines 71-72 of evaluator.py are not wrong ( How do your generated images look like? |
@zha-hengfeng if trg_imgs:
for trg_img in trg_imgs:
trgs.append(trg_img.detach().cpu()) Because |
Thank you again. Your work is great and has helped me a lot. Now I find that the phase1 model will fail in the test. And the code doesn't to generate a new glyph for the input reference glyphs when testing. I would like to know what kind of forged glyph the model will generate for the glyph with input reference font. |
@zha-hengfeng
We already publish the technical details in our paper (https://arxiv.org/abs/2009.11042). |
Closing the issue, assuming the answer resolves the problem. |
During training phase 1, the program was interrupted due to an error during Validation.
The text was updated successfully, but these errors were encountered: