Generate Annotation Dataset

Description

This operator is used to convert annotation data in a specific format into the COCO dataset format, which can be directly uploaded to an external CVAT annotation platform for training deep learning models.

Overview

Reads local detection result files, converts them into a labeled dataset, and saves them to a specified path.

Scenarios

Preparing deep learning data, which can be further used to optimize annotations and manage model data.

Inputs and Outputs

Inputs

Empty Input: Enable at least one input mapping on this node if you want it and downstream nodes to run with the graph.

Outputs

Dataset Save Path: Save path of the generated dataset.

Parameters

Initialization Parameters

Save to FTP

Description

Main switch for background FTP upload functionality.

Tuning Instructions

  • False (Default): Saves files locally only.

  • True: Attempts to upload to the specified FTP server after local save.

Parameter Range

Default: False

Delete Local Data

Description

Handles local files after a successful FTP upload.

Tuning Instructions

  • True (Default): Deletes local file after sync to save space.

  • False: Retains both local and remote copies.

Parameter Range

Default: True

FTP IP Address

Description

IP address of the FTP server.

Parameter Range

Default: 192.168.33.18

FTP Port

Description

Listening port number of the FTP service.

Parameter Range

Default: 8089

FTP Username

Description

Username for FTP server login.

Parameter Range

Default: admin

FTP Password

Description

Password for FTP server login.

Parameter Range

Default: qy123456

FTP Directory

Description

Target storage directory on the FTP server.

Parameter Range

Default: data

Run Parameters

Save Name

Description

Specifies the prefix of the saved file name without the extension.

Tuning Instructions

Use a descriptive name to simplify later retrieval and management. Default name: datasets

Parameter Range

Default: datasets

Read Path

Description

Folder path to read detection results and images from. The folder should contain JSON and PNG files; can be set based on the output of the Save Detection Results node.

Save Path

Description

Specifies the save path for the generated COCO dataset.

Tuning Instructions

If left empty, the operator saves to the dataset folder under the read path by default.

Label Names

Description

Annotation label names. Can be set based on category names from a CVAT annotation project; affects the category of the final annotation result. If empty, defaults to 0, 1, 2, 3, 4, …​

Parameter Range

Default: []

Save Single File Only

Description

Sets the file saving strategy: save as a single file or multiple files.

Tuning Instructions

  • False (Default): Automatically appends a timestamp to the filename (e.g., data_20231027120000_z.tiff) to avoid overwriting.

  • True: Uses the fixed name prefix, overwriting existing files and only keeping the result of the last execution.

Parameter Range

Default: False

Max Storage Memory

Description

Sets the maximum total size of files allowed in the save directory. When the limit is exceeded, the software deletes the oldest files of the same type.

Tuning Instructions

Range: [0.00001, 10] GB, Default value: 10 GB.

Parameter Range

Values/Range: [1e-05, 4000.0]

Default: 10.0

Unit: GB