faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.39k stars 356 forks source link

custom dataset for training #71

Closed rawat123 closed 4 years ago

rawat123 commented 4 years ago

hi, i have trained detector and recognizer model and loads them like below code,

mydetector=keras_ocr.detection.Detector().model.load_weights(os.path.join(data_dir, 'detector_icdar2013.h5'))
myrecognizer=keras_ocr.recognition.Recognizer().model.load_weights(os.path.join(data_dir,'recognizer_borndigital.h5'))

but it still downloads craft_mlt_25k.h5 file and crnn_kurapan.h5 file so these are like basic trained model for keras_ocr and my code loads new trained model over them???

please give some guidance i am new to python and tensor-flow