srikanthkb / face-detection-and-recognition Goto Github PK
View Code? Open in Web Editor NEWDetection and recognition of a person in real time live video sequences.
Detection and recognition of a person in real time live video sequences.
Getting ValueError: bad marshal data (unknown type code) when trying to run
extract_embeddings.py
PS D:\Recognition\Face-Detection-and-Recognition-master> python extract_embeddings.py
2021-05-16 19:54:42.008919: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cudart64_110.dll
Loaded: (107, 160, 160, 3) (107,) (25, 160, 160, 3) (25,)
Traceback (most recent call last):
File "D:\Recognition\Face-Detection-and-Recognition-master\extract_embeddings.py", line 29, in
model = load_model('facenet_keras.h5')
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\saving\save.py", line 201, in load_model
return hdf5_format.load_model_from_hdf5(filepath, custom_objects,
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\saving\hdf5_format.py", line 180, in load_model_from_hdf5
model = model_config_lib.model_from_config(model_config,
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\saving\model_config.py", line 59, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\layers\serialization.py", line 159, in deserialize
return generic_utils.deserialize_keras_object(
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\utils\generic_utils.py", line 668, in deserialize_keras_object
deserialized_obj = cls.from_config(
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\engine\training.py", line 2332, in from_config
functional.reconstruct_from_config(config, custom_objects))
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\engine\functional.py", line 1274, in reconstruct_from_config
process_layer(layer_data)
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\engine\functional.py", line 1256, in process_layer
layer = deserialize_layer(layer_data, custom_objects=custom_objects)
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\layers\serialization.py", line 159, in deserialize
return generic_utils.deserialize_keras_object(
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\utils\generic_utils.py", line 668, in deserialize_keras_object
deserialized_obj = cls.from_config(
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\layers\core.py", line 1001, in from_config
function = cls._parse_function_from_config(
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\layers\core.py", line 1053, in _parse_function_from_config
function = generic_utils.func_load(
File "C:\Users\athar\AppData\Roaming\Python\Python39\site-packages\keras\utils\generic_utils.py", line 783, in func_load
code = marshal.loads(raw_code)
ValueError: bad marshal data (unknown type code)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.