swghosh / DeepFace

Keras implementation of the renowned publication "DeepFace: Closing the Gap to Human-Level Performance in Face Verification" by Taigman et al. Pre-trained weights on VGGFace2 dataset.
https://research.fb.com/publications/deepface-closing-the-gap-to-human-level-performance-in-face-verification/
MIT License
194 stars 61 forks source link

Can not load the finetuned model in keras #11

Closed hrithickcodes closed 3 years ago

hrithickcodes commented 4 years ago
filename = r"Facebook_Deepface.h5"
model = create_deepface()
model = load_model(filename)

error: ValueError: Unknown layer: Functional

swghosh commented 3 years ago

Try loading the model architecture using create_deepface and then loading weights using downloaded weights from releases section of this repository.