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
tf.image.resize/resize_with_crop_or_pad/pad_to_bounding_box/extract_glimpse crash(abort) #46890
Labels
comp:ops
OPs related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
TF 2.4
for issues related to TF 2.4
type:bug
Bug
Comments
|
@rmothukuru |
|
BTW, I also find it in import tensorflow as tf
import numpy as np
tf.image.crop_and_resize(image=np.ones((1,1,1,1)), boxes=np.ones((11,4)), box_indices=np.ones((11)), crop_size=[2065374891,1145309325])Output: 2021-02-05 17:02:57.884394: F tensorflow/core/framework/tensor_shape.cc:187] Non-OK-status: InitDims(dim_sizes) status: Internal: Encountered overflow when multiplying 22719123801 with 1145309325, result: -1
Aborted (core dumped)import tensorflow as tf
import numpy as np
tf.image.resize_with_pad(image=np.ones((5,5,5)), target_height=1635057735, target_width=1635057735)Output: 2021-02-19 22:28:03.322414: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2021-02-19 22:28:03.332536: F tensorflow/core/framework/tensor_shape.cc:353] Check failed: 0 <= new_num_elements (0 vs. -5079675089792900491)
Aborted (core dumped) |
|
Was able to reproduce the issue in TF 2.6.0-dev20210528 & colab crashes ,please find the gist here..Thanks ! |
This was referenced Aug 27, 2021
|
Update:
|
copybara-service bot
pushed a commit
that referenced
this issue
Aug 31, 2021
…number Imported from GitHub PR #51732 This PR is part of the effort in #46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Copybara import of the project: -- c8d8705 by Yong Tang <yong.tang.github@outlook.com>: Fix crash of tf.image.crop_and_resize when input is large number This PR is part of the effort in 46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> COPYBARA_INTEGRATE_REVIEW=#51732 from yongtang:46890-tf.image.crop_and_resize c8d8705 PiperOrigin-RevId: 394109830 Change-Id: If049dad0844df9353722029ee95bc76819eda1f4
|
There are still a few PRs that need to land here. |
|
I think all of these landed |
mihaimaruseac
pushed a commit
that referenced
this issue
Oct 28, 2021
…number Imported from GitHub PR #51732 This PR is part of the effort in #46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Copybara import of the project: -- c8d8705 by Yong Tang <yong.tang.github@outlook.com>: Fix crash of tf.image.crop_and_resize when input is large number This PR is part of the effort in 46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> COPYBARA_INTEGRATE_REVIEW=#51732 from yongtang:46890-tf.image.crop_and_resize c8d8705 PiperOrigin-RevId: 394109830 Change-Id: If049dad0844df9353722029ee95bc76819eda1f4
mihaimaruseac
pushed a commit
that referenced
this issue
Oct 28, 2021
…number Imported from GitHub PR #51732 This PR is part of the effort in #46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Copybara import of the project: -- c8d8705 by Yong Tang <yong.tang.github@outlook.com>: Fix crash of tf.image.crop_and_resize when input is large number This PR is part of the effort in 46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> COPYBARA_INTEGRATE_REVIEW=#51732 from yongtang:46890-tf.image.crop_and_resize c8d8705 PiperOrigin-RevId: 394109830 Change-Id: If049dad0844df9353722029ee95bc76819eda1f4
mihaimaruseac
pushed a commit
that referenced
this issue
Oct 28, 2021
…number Imported from GitHub PR #51732 This PR is part of the effort in #46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Copybara import of the project: -- c8d8705 by Yong Tang <yong.tang.github@outlook.com>: Fix crash of tf.image.crop_and_resize when input is large number This PR is part of the effort in 46890 where tf.image.crop_and_resize will crash if shape consists of large number. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> COPYBARA_INTEGRATE_REVIEW=#51732 from yongtang:46890-tf.image.crop_and_resize c8d8705 PiperOrigin-RevId: 394109830 Change-Id: If049dad0844df9353722029ee95bc76819eda1f4
This was referenced Oct 28, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp:ops
OPs related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
TF 2.4
for issues related to TF 2.4
type:bug
Bug
System information
Describe the current behavior
The following APIs crash(abortion) when the given size is large
tf.keras.backend.resize_imagesDescribe the expected behavior
expect exception messages if the input is not expected instead of crash
Standalone code to reproduce the issue
tf.image.resizeOutput:
tf.image.resize_with_crop_or_padOutput:
tf.image.pad_to_bounding_boxOutput
tf.image.extract_glimpseOutput:
tf.keras.backend.resize_imageOutput:
The text was updated successfully, but these errors were encountered: