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

Check failed in tf.image.crop_and_resize and tf.compat.v1.image.crop_and_resize when boxes and box_indices are empty. #65652

Open
xl1043237213 opened this issue Apr 14, 2024 · 4 comments
Assignees
Labels
comp:ops OPs related issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.15 For issues related to 2.15.x type:bug Bug

Comments

@xl1043237213
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf 2.15

Custom code

No

OS platform and distribution

Linux Ubuntu 20.04

Mobile device

No response

Python version

3.10

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

Check failed in tf.image.crop_and_resize when boxes and box_indices are empty, which causes the program to crash. See the colab link below for details.

Standalone code to reproduce the issue

https://colab.research.google.com/drive/1FDl2zKTLnCEA8aSIAjsOHg4B3CIPJNCn?usp=sharing

Relevant log output

Check failed: NDIMS == dims() (2 vs. 1)Asking for tensor of 2 dimensions from a tensor of 1 dimensions
@google-ml-butler google-ml-butler bot added the type:bug Bug label Apr 14, 2024
@xl1043237213 xl1043237213 changed the title Check failed in tf.image.crop_and_resize when boxes and box_indices are empty. Check failed in tf.image.crop_and_resize and tf.compat.v1.image.crop_and_resize when boxes and box_indices are empty. Apr 14, 2024
@JiteshSinghShekhawat
Copy link

JiteshSinghShekhawat commented Apr 14, 2024

can you assign this issue to me ? i am new bie this will be my first contribution for open source .

@xl1043237213
Copy link
Author

@JiteshSinghShekhawat I'm sorry, I don't have permission to assign. You might need to wait for response of @Venkat6871.

@Venkat6871 Venkat6871 added TF 2.15 For issues related to 2.15.x comp:ops OPs related issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues labels Apr 15, 2024
@Venkat6871
Copy link

Hi @xl1043237213 ,

I tried to run your code on colab using TF v2.15, 2.16.1, nightly and faced the same issue. Please find the gist here for reference.

Thank you!

@SuryanarayanaY
Copy link
Collaborator

Hi @JiteshSinghShekhawat ,

Please feel free to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.15 For issues related to 2.15.x type:bug Bug
Projects
None yet
Development

No branches or pull requests

4 participants