Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run trainer.py #3

Open
atulvashisth96 opened this issue Oct 5, 2018 · 2 comments
Open

Not able to run trainer.py #3

atulvashisth96 opened this issue Oct 5, 2018 · 2 comments

Comments

@atulvashisth96
Copy link

When I'm running trainer.py on Pycharm it is showing

Using TensorFlow backend.
2018-10-05 15:20:41.521166: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Traceback (most recent call last):
File "trainer.py", line 13, in
e=emb()
File "C:\Users\Admin\Desktop\Programs\Attendance face recognition\Attendance-using-Face-master\Attendance-using-Face-master\embedding.py", line 5, in init
self.model=load_model('facenet_keras.h5')
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\engine\saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\engine\saving.py", line 225, in deserialize_model
model = model_from_config(model_config, custom_objects=custom_objects)
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\engine\saving.py", line 458, in model_from_config
return deserialize(config, custom_objects=custom_objects)
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\layers_init
.py", line 55, in deserialize
printable_module_name='layer')
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\utils\generic_utils.py", line 145, in deserialize_keras_object
list(custom_objects.items())))
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\engine\network.py", line 1032, in from_config
process_node(layer, node_data)
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\engine\network.py", line 991, in process_node
layer(unpack_singleton(input_tensors), **kwargs)
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\engine\base_layer.py", line 457, in call
output = self.call(inputs, **kwargs)
File "C:\Users\Admin\PycharmProjects\untitled\venv\lib\site-packages\keras\layers\core.py", line 687, in call
return self.function(inputs, **arguments)
File "../code/facenet_keras_v1.py", line 90, in
IndexError: tuple index out of range

Please resolve the issue
NOTE: I am running this on windows 10 and does not have GPU.

@atulvashisth96
Copy link
Author

when running trainer.py
File "../code/facenet_keras_v1.py", line 90, in
IndexError: tuple index out of range

@shiva13425
Copy link

hi @atulvashisth96
is the issue solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants