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

InvalidArgumentError: Boxes contains at least one element that is not finite #31

Open
khatchad opened this issue Aug 6, 2024 · 1 comment

Comments

@khatchad
Copy link
Contributor

khatchad commented Aug 6, 2024

During the "overfitting a sample" section, I get the following error after the batch processing:

...
('batch', 96, '-', 0.31591606)
('batch', 97, '-', 0.20713705)
('batch', 98, '-', 0.19917412)
('batch', 99, '-', 0.19703498)
Traceback (most recent call last):
  File "tf-eager-fasterrcnn/train_model.py", line 102, in <module>
    res = model.simple_test_bboxes(img, img_meta, proposals)
  File "detection/models/detectors/test_mixins.py", line 71, in simple_test_bboxes
    pooled_regions = self.roi_align(
  File "detection/models/roi_extractors/roi_align.py", line 87, in __call__
    pooled_rois.append(tf.image.crop_and_resize(
  File "tensorflow/python/util/traceback_utils.py", line 153, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "tensorflow/python/eager/execute.py", line 54, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Boxes contains at least one element that is not finite [Op:CropAndResize]
@khatchad
Copy link
Contributor Author

khatchad commented Aug 6, 2024

BTW, this with the change from #28.

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

1 participant