weinman / cnn_lstm_ctc_ocr

Tensorflow-based CNN+LSTM trained with CTC-loss for OCR
GNU General Public License v3.0
498 stars 170 forks source link

passing the session . #46

Closed imohammadhossein closed 4 years ago

imohammadhossein commented 5 years ago

hey , thank you for your nice code ! I want to load the model just once and pass the session for several predicts . because of loading the model time . I just wonder how to do it , please help ! , thanks .

weinman commented 5 years ago

Thanks. The validate.py program gives a simple example of this use case under the current code.

The old version didn't have the nice Estimator/Dataset abstractions, so you may perhaps find it more directly useful.