tensorflow / tensorflow/models

How to do batch inference with maskrcnn?

Open
#9,951 5 comments 1 reaction 3 assignees View on GitHub

@pkulzc is already working on this.

Since Apr 29, 2021.

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

Description

Prerequisites

Please answer the following question for yourself before submitting an issue.

  • [√] I checked to make sure that this feature has not been requested already.

1. The entire URL of the file you are using

I use the version of tf 1.x for maskrcnn.

2. Describe the feature you request

I understand there is a way for single image inference.

I want to know how to do the batch inference in one tensor dict rather than using for loop to do it with one image one time.

3. Additional context

In object_detection.utils.ops, reframe_box_masks_to_image_masks function only process one image.
In issues(#8812), I saw Detection part, run_inference_for_single_image function.

why this? why cannot maskrcnn process muti images at the same time just like other networks?

image

4. Are you willing to contribute it? (Yes or No)

Yes

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.