Skip to main content

Python SDK for Converting Tunas Format Dataset to DSDL YAML

Project description

执行步骤

  1. 安装
pip install tunas2dsdl-c
  1. 该代码可以统一将tunas 0.3版本的数据集转换为dsdl所需的yaml文件

    tunas2dsdl_c convert -s "/XXX/tunas_data_demo/CIFAR10-tunas" -o "/XXX/tunas_data_demo/CIFAR10-tunas_dsdl/" -l
    

    每个参数的意义为:

    参数简写 参数全写 参数解释
    -s --src_dir tunas 0.3版本的文件的路径
    -o --out_dir 可选,生成的yaml的根路径(可以不写,不写默认为和src_dir为同一个根目录但是文件夹名字加上后缀_dsdl)
    -c --unique_cate 可选,这个参数一般不用管,除非你的数据集的category_name是有重复的(目前只有Imagenet是这样的, 所以Imagenet此处要)设置成wordnet_id
    -l --local 可选,是否将数据集中的samples单独存储到一个json文件中还是存储在同一个文件中,当样本数量不大的情况下可以使用该选项,默认存储的文件名为XXX_samples.json,保存在同一个目录下(如果使用-l则存在同一个yaml文件中)

    然后就会生成yaml文件。

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_c-1.0.4.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file tunas2dsdl_c-1.0.4.tar.gz.

File metadata

  • Download URL: tunas2dsdl_c-1.0.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for tunas2dsdl_c-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5180af35f6391b5f095ca2cbe0b14bbcf137fca90d3e439419dbfc10a55c4735
MD5 6702d9374b58e6e51c2361a1d9124bd4
BLAKE2b-256 8453c74a4ea75f395019777c90b4ae8b20ffe7a2696e3924f0ed04b65d2ca14c

See more details on using hashes here.

Supported by

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