tensorflow / tensorflow/models

Object Detection API: Faster-RCNN, issue on Image Dimensions.

Open
#7,158 2 comments 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Jun 19, 2020.

models:research:odapi
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

Hello everyone,

I have trained my model on Image Size: 720*700 pxs. With modification of following two files.
i. object detection / core / preprocessor.py:

def resize_image(image,
                 masks=None,
                 new_height=4160,
                 new_width=3120,
                 method=tf.image.ResizeMethod.BILINEAR,
                 align_corners=False):

ii. object detection / training / faster_rcnn_inception_v2_pets.config

model {
  faster_rcnn {
    num_classes: 10
    image_resizer {
      keep_aspect_ratio_resizer {
        min_dimension: 3120
        max_dimension: 4160
      }
    }

What is function of the both codes. If images prior training are of 600600, will these codes resize image to 31204160 ? Second, when I am using the trained model for detection and classification on Image Size: 3120*4160, images are being cropped randomly and I am not geting the whole Images in Object Detection.

Any help would be appreciated.

Best regards,
Waqar Ali Memon

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.