amaljoseph / Signature-Verification_System_using_YOLOv5-and-CycleGAN

An end-to-end signature verification system to extract, clean and verify signatures in documents. Signatures are detected using YOLOv5. Noise is cleaned using a CycleGAN approach and verified. Keras / Tensorflow / PyTorch
147 stars 55 forks source link

Unsuccessful TensorSliceReader constructor: Failed to find any matching files for #3

Open mazzasaverio opened 2 years ago

mazzasaverio commented 2 years ago

Ii is not possible lead saved_model.pb because it is trained with TPU and I think it is necessary to set experimental_io_device, otherwise error occur trying to find temporary folder where to find variables

model_dir = "./model"

localhost_save_option = tf.saved_model.SaveOptions(experimental_io_device="/job:localhost") model.save(model_dir, options=localhost_save_option)

Restore the weights model2 = tf.keras.models.load_model(model_dir, options=localhost_save_option)

rubensanchezrivero commented 2 years ago

is there any update on this?