Closed Reka-Berci-Hajnovics closed 3 years ago
@Reka-Berci-Hajnovics Did you run into the following error when you run "python eye_tracker.py":
Traceback (most recent call last):
File "eye_tracker.py", line 154, in
landmark_model = get_landmark_model()
File "/Users/mnchen/dev/ML/gaze_demo/Proctoring-AI/face_landmarks.py", line 30, in get_landmark_model
model = keras.models.load_model(saved_model)
File "/Users/mnchen/dev/ML/gaze_demo/gaze_demo/lib/python3.6/site-packages/tensorflow/python/keras/saving/save.py", line 212, in load_model
return saved_model_load.load(filepath, compile, options)
File "/Users/mnchen/dev/ML/gaze_demo/gaze_demo/lib/python3.6/site-packages/tensorflow/python/keras/saving/saved_model/load.py", line 130, in load
_read_legacy_metadata(object_graph_def, metadata)
File "/Users/mnchen/dev/ML/gaze_demo/gaze_demo/lib/python3.6/site-packages/tensorflow/python/keras/saving/saved_model/load.py", line 179, in _read_legacy_metadata
node_paths = _generate_object_paths(object_graph_def)
File "/Users/mnchen/dev/ML/gaze_demo/gaze_demo/lib/python3.6/site-packages/tensorflow/python/keras/saving/saved_model/load.py", line 204, in _generate_object_paths
for reference in object_graph_def.nodes[current_node].children:
IndexError: list index (0) out of range
Anything wrong with the saved_model checked into the master?
Hi @mchen07 , Sorry, but I haven't run into that problem. I added only a simple type conversion from float to int.
@mchen07 pls have a look at #34
When I try to run eye-tracker.py with python 3 I got the following error message:
Therefore I've converted the type of mid to integer. Now it works smoothly! Thanks for the tutorial and for the code!