In TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, the `tf.image.generate_bounding_box_proposals` function does not check for rank 4 scores. This issue can lead to an OOM when a large number of images (for example, photos) are processed. To fix this, we have patched the `tf.image.generate_bounding_box_proposals` function. This issue has been reported on TensorFlow GitHub issue tracker. We will assign this issue a medium severity and patch it in TensorFlow 2.10.1, 2.9.3, and 2.8.4. This issue has been reported on TensorFlow GitHub issues tracker. We will assign this issue a high severity and patch it in TensorFlow 2.10.1, 2.9.3, and 2.8.4. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range. In TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, the `tf.image.generate_bounding_box_proposals` function does not check for rank 4 scores. This issue can lead to an
TensorFlow 2.10.1
, 2.9.3, and TensorFlow 2.8.4
In TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, the `tf.image.generate_bounding_box_proposals` function does not check for rank 4 scores was originally submitted on GitHub by finkanmanus in the issue tracker at https://github.com/tensorflow/tensorflow/issues/6881 as:
TensorFlow 2: Generate Bounding Box Proposal Function Does Not Check for Rank 4 Scores
The following code is truncated to fit on this page without sacrificing readability:
# function to generate bounding box proposals based on l2 loss with tf-idf # -------------- # use -1 to force a bounding box proposal from the entire image # --------------- def generate_bounding_box_proposals(image, score = -1): """Generates a list of bounding boxes that enclose the given image and returns an array of `tf-idf` scores.""" numImages = tf._global_variables()["num_images"] numProposals = tf._global_variables()["num_proposals"] nbPairs = tf._global_variables()["nbPairs"] ids = np . arange ( numImages ) . reshape (( num
Timeline
Published on: 11/18/2022 22:15:00 UTC
Last modified on: 11/22/2022 21:28:00 UTC
References
- https://github.com/tensorflow/tensorflow/commit/cf35502463a88ca7185a99daa7031df60b3c1c98
- https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/image/generate_box_proposals_op.cu.cc
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-6x99-gv2v-q76v
- https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-41888