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

Issue with Keras #106

Open
JosjaG opened this issue Dec 17, 2019 · 0 comments
Open

Issue with Keras #106

JosjaG opened this issue Dec 17, 2019 · 0 comments
Assignees

Comments

@JosjaG
Copy link
Contributor

JosjaG commented Dec 17, 2019

[ERROR][/hero/people_recognition/face_recognition/keras_face_properties][1576613239.376740]: Error processing request: Structure is a scalar but len(flat_sequence) == 0 > 1

Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 625, in _handle_request
    response = convert_return_to_response(self.handler(request), self.response_class)
  File "/home/amigo/ros/kinetic/system/src/image_recognition_keras/scripts/face_properties_node", line 50, in _get_face_properties_srv
    estimations = self._estimator.estimate(bgr_images)
  File "/home/amigo/ros/kinetic/system/src/image_recognition_keras/src/image_recognition_keras/age_gender_estimator.py", line 51, in estimate
    results = self._model.predict(faces)
  File "/home/amigo/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 909, in predict
    use_multiprocessing=use_multiprocessing)
  File "/home/amigo/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 722, in predict
    callbacks=callbacks)
  File "/home/amigo/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_arrays.py", line 410, in model_iteration
    aggregator.finalize()
  File "/home/amigo/.local/lib/python2.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 349, in finalize
    self.results = nest.pack_sequence_as(self._structure, self.results)
  File "/home/amigo/.local/lib/python2.7/site-packages/tensorflow_core/python/util/nest.py", line 456, in pack_sequence_as
    % len(flat_sequence))
ValueError: Structure is a scalar but len(flat_sequence) == 0 > 1
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