Giter Club home page Giter Club logo

face-detection-and-recognition's People

Contributors

srikanthkb avatar

Stargazers

 avatar

face-detection-and-recognition's Issues

Getting ValueError: bad marshal data (unknown type code)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.