tensorflow / tensorflow/tflite-support

Add C++ Tests for Image Segmenter Category Mask

Open
#773 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
441
Forks
146
PR merge metrics
No merged PRs in 30d

Description

The current C++ category mask test mocks an empty frame buffer to test the Postprocess function.
There is no test for calling the Segment function with a frame buffer constructed from image data and obtaining a category mask result.
Could this be added in C++? This will also let the iOS, Python APIs compare to the values of this test for category mask.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with tensorflow_lite_support/cc/test/task/vision/image_segmenter_test.cc, especially the existing category mask test around line 462, and review the Segment and Postprocess entry points in image_segmenter.h. Add coverage for Segment using a frame buffer constructed from image data, with assertions for the category mask values that other APIs can compare against.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.