MohamadMerchant / Voice-Authentication-and-Face-Recognition

Voice Biometrics Authentication using GMM and Face Recognition Using Facenet and Tensorflow
104 stars 59 forks source link

load_model error #15

Open EmaanAyesha opened 2 years ago

EmaanAyesha commented 2 years ago

error occur in this line model = load_model('facenet_model/model.h5', custom_objects={'triplet_loss': triplet_loss}) can u plz tell me how can i resolve this error

TypeError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_5848/2604218474.py in 12 13 # load the model ---> 14 model = load_model('facenet_model/model.h5', custom_objects={'triplet_loss': triplet_loss})

~\AppData\Roaming\Python\Python39\site-packages\keras\utils\traceback_utils.py in error_handler(*args, **kwargs) 65 except Exception as e: # pylint: disable=broad-except 66 filtered_tb = _process_traceback_frames(e.traceback) ---> 67 raise e.with_traceback(filtered_tb) from None 68 finally: 69 del filtered_tb

~\AppData\Roaming\Python\Python39\site-packages\keras\utils\generic_utils.py in func_load(code, defaults, closure, globs) 793 if globs is None: 794 globs = globals() --> 795 return python_types.FunctionType(code, globs, name=code, argdefs=defaults, closure=closure) 796 797

TypeError: function() argument 'code' must be code, not str

ZahidServers commented 2 years ago

Hey Have you Solve it? I am too looking for solutions

EmaanAyesha commented 2 years ago

Hey Have you Solve it? I am too looking for solutions

bro just change the model file of your own and path of your file ...

Swaroop-Acharya commented 1 year ago

Hey this project is totally working??