keras-ocr icon indicating copy to clipboard operation
keras-ocr copied to clipboard

where does `craft_mlt_25k.h5` come from?

Open ghost opened this issue 4 years ago • 2 comments

Hi, thanks for your great work which I'm referencing in my version of craft. I noticed that in the training example your code looks for / downloads a craft_mlt_25k.h5. Assuming I want to train a model from scratch without pretrained weights, after n training epochs, should I expect to get the same weights or close? If not, then how these weights were originally obtained? I also noticed that the training always starts with a loss value of 0.0something whether pretrained weights are loaded or not. This is making me question whether the training is actually working.

ghost avatar Dec 31 '21 19:12 ghost

Hi , Did you get answer to the question? Im also interested in knowing the answer for this question.

Does Keras OCR use pretrained model of pyTorch CRAFT implementation?

Asad-Raza avatar Jan 13 '22 13:01 Asad-Raza

Hi , Did you get answer to the question? Im also interested in knowing the answer for this question.

Does Keras OCR use pretrained model of pyTorch CRAFT implementation?

Not yet but I'm assuming these weights were converted from pytorch, and clearly there's something wrong with the loss starting at a very low value.

ghost avatar Jan 13 '22 17:01 ghost