@@ -5,7 +5,7 @@ import { Bbox } from './objectDetection';
55/**
66 * Represents a single detected instance in instance segmentation output.
77 *
8- * @typeParam L - The { @link LabelEnum} type for the model.
8+ * @typeParam L - The label map type for the model, must conform to { @link LabelEnum} .
99 * @category Types
1010 * @property {Bbox } bbox - The bounding box of the instance.
1111 * @property {Uint8Array } mask - Binary mask (0 or 1) representing the instance.
@@ -28,7 +28,7 @@ export interface SegmentedInstance<L extends LabelEnum> {
2828/**
2929 * Options for instance segmentation forward pass.
3030 *
31- * @typeParam L - The { @link LabelEnum} type for the model.
31+ * @typeParam L - The label map type for the model, must conform to { @link LabelEnum} .
3232 * @category Types
3333 */
3434export interface InstanceSegmentationOptions < L extends LabelEnum > {
@@ -63,9 +63,9 @@ export interface InstanceSegmentationOptions<L extends LabelEnum> {
6363}
6464
6565/**
66- * Configuration for a custom instance segmentation model.
66+ * Configuration for an instance segmentation model.
6767 *
68- * @typeParam T - The { @link LabelEnum} type for the model.
68+ * @typeParam T - The label map type for the model, must conform to { @link LabelEnum} .
6969 * @category Types
7070 */
7171export type InstanceSegmentationConfig < T extends LabelEnum > = {
@@ -137,7 +137,7 @@ export interface InstanceSegmentationProps<
137137 * Return type for the `useInstanceSegmentation` hook.
138138 * Manages the state and operations for instance segmentation models.
139139 *
140- * @typeParam L - The { @link LabelEnum} representing the model's class labels .
140+ * @typeParam L - The label map type for the model, must conform to { @link LabelEnum} .
141141 *
142142 * @category Types
143143 */
@@ -166,7 +166,7 @@ export interface InstanceSegmentationType<L extends LabelEnum> {
166166 * Executes the model's forward pass to perform instance segmentation on the provided image.
167167 * @param imageSource - A string representing the image source (e.g., a file path, URI, or base64 string) to be processed.
168168 * @param options - Optional configuration for the segmentation process.
169- * @returns A Promise resolving to an array of instance masks .
169+ * @returns A Promise resolving to an array of { @link SegmentedInstance} objects .
170170 * @throws {RnExecutorchError } If the model is not loaded or is currently processing another image.
171171 */
172172 forward : (
0 commit comments