From f2b8a516c2ba7affea3b42c64194cb432ccf0068 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Wed, 29 Jan 2025 16:17:55 +0200 Subject: [PATCH] Fix documentation references to the `encode_mask` SDK function --- cvat-sdk/cvat_sdk/auto_annotation/interface.py | 2 +- site/content/en/docs/api_sdk/sdk/auto-annotation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cvat-sdk/cvat_sdk/auto_annotation/interface.py b/cvat-sdk/cvat_sdk/auto_annotation/interface.py index 81c8e488c5a1..28275b83b346 100644 --- a/cvat-sdk/cvat_sdk/auto_annotation/interface.py +++ b/cvat-sdk/cvat_sdk/auto_annotation/interface.py @@ -187,7 +187,7 @@ def mask(label_id: int, points: Sequence[float], **kwargs) -> models.LabeledShap """ Helper factory function for LabeledShapeRequest with frame=0 and type="mask". - It's recommended to use the cvat.masks.encode_mask function to build the + It's recommended to use the cvat_sdk.masks.encode_mask function to build the points argument. """ return shape(label_id, type="mask", points=points, **kwargs) diff --git a/site/content/en/docs/api_sdk/sdk/auto-annotation.md b/site/content/en/docs/api_sdk/sdk/auto-annotation.md index b50a680c7364..49fc192a801c 100644 --- a/site/content/en/docs/api_sdk/sdk/auto-annotation.md +++ b/site/content/en/docs/api_sdk/sdk/auto-annotation.md @@ -188,7 +188,7 @@ The following helpers are available for use in `detect`: | `keypoint` | `SubLabeledShapeRequest` | `frame=0`, `type="points"` | For `mask`, it is recommended to create the points list using -the `cvat.masks.encode_mask` function, which will convert a bitmap into a +the `cvat_sdk.masks.encode_mask` function, which will convert a bitmap into a list in the format that CVAT expects. For example: ```python