tensorflow / tensorflow/models
How to do batch inference with maskrcnn?
@pkulzc is already working on this.
Since Apr 29, 2021.
- 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?

4. Are you willing to contribute it? (Yes or No)
Yes
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.