Open EmaanAyesha opened 2 years ago
Hey Have you Solve it? I am too looking for solutions
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 ...
Hey this project is totally working??
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