Skip to main content

Python SDK for Converting Tunas Format Dataset to DSDL YAML

Project description

项目简介

该项目的作用是将tunas标准数据集转换为符合dsdl标准的yaml文件

项目安装

pip install tunas2dsdl

项目使用

tunas2dsdl convert -i <dataset_info path> -a <annotation file> -w <working dir> -t <task> -s

tunas2dsdl convert -d <dataset_path> -w <working dir> -t <task> -s

注意:

  • 如果已经通过 -i-a 指定了 dataset_info.json和相应的 标注文件,则不可以使用 -d 选项;
  • 如果已经使用了 -d 选项,则不可以使用 -i-a 选项

参数详解

参数 含义
-d/--directory tunas标准数据集的目录路径<dataset_path>,该目录下必须包含<dataset_path>/dataset_info.json<dataset_path>/annotations/json/<json_file>等内容
-i/--dataset-info tunas标准数据集的dataset_info.json的路径
-a/--annotation tunas标准数据集的标注文件的路径
-w/--working-dir 生成的dsdl yaml文件存储的目录路径,最终代码会在该目录中生成与segment name同名的文件夹,并将所有的内容保存到该文件夹中
-t/--task 当前处理的的任务,目前只支持选项detection,对应了检测任务
-s/--separate-store 是否将数据集中的samples单独存储到一个json文件中,当样本数量巨大的情况下可以使用该选项,默认存储的文件名为samples.json,保存在working-dir目录下
-c/--config 如果要从aliyun oss上读取文件,则需要通过该选项指定配置文件路径

阿里云OSS配置文件为一个json文件,内容如下:

{
    "access_key_secret": "your secret access key",
    "endpoint": "your endpoint",
    "access_key_id": "your access key id"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tunas2dsdl-0.1.15.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

tunas2dsdl-0.1.15-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file tunas2dsdl-0.1.15.tar.gz.

File metadata

  • Download URL: tunas2dsdl-0.1.15.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for tunas2dsdl-0.1.15.tar.gz
Algorithm Hash digest
SHA256 f9ea3ddd0f52e40bee25a9a70cf110c6cd1cfc1ec80dd3083db49ac26bfcb394
MD5 f868912dc002ef2c3e902b70ba24def2
BLAKE2b-256 113f7945c44f1e8e51668e6f2325fae2279c4498efc974acd43a69f470302490

See more details on using hashes here.

File details

Details for the file tunas2dsdl-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: tunas2dsdl-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for tunas2dsdl-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 b62b2a059cdf9e118e641792768078cec84eeb92b55e7fdbcd99796ec7bafe3e
MD5 d87e0c8b3349f5b69e3387fcca18e4aa
BLAKE2b-256 393e1f948f41d31b3d5e20ed44282f65c16cac76ffac974087dfb977c8841aae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page