Skip to main content

Python SDK for DSDL

Project description

DSDL-SDK 使用说明

1. 安装DSDL

python 环境3.8及以上

python setup.py install

2. Demo演示(COCO数据集可视化)

2.1 解析器反序列化Yaml为Python代码

dsdl parse --yaml demo/coco_demo.yaml

2.2 配置文件修改,设置读取路径

config.py中,列举了所有支持的媒体文件读取方式,根据实际情况选择并配置文件路径等信息:
a.本地读取: local_config中的参数working_dir(本地数据所在的目录)
b.阿里云OSS读取: ali_oss_kwargs中的参数(阿里云OSS的配置access_key_secret, endpoint, access_key_id;桶名称bucket_name,数据在桶中的目录working_dir

2.3 可视化功能展示:

python visualize.py -y <yaml-name>.yaml -c ali-oss -n 10 -r -v -f label bbox bool

每个参数的意义为:

参数简写 参数全写 参数解释
-y --yaml dsdl_yaml文件的路径
-c --config 只可以指定为local或是ali-oss,分别表示读取本地的数据与读取阿里云的数据
-n --num 加载数据集的样本数量
-r --random 在加载数据集中的样本时是否随机选取样本,如果不指定的话就按顺序从开始选取样本
-v --visualize 是否将加载的数据进行可视化展示
-f --field 选择需要进行可视化的字段,如-f bbox表示可视化bbox,-f label表示对label进行可视化等等,可以同时选择多个,如-f label bbox bool

Acknowledgments

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

dsdl-0.1.3.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

dsdl-0.1.3-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file dsdl-0.1.3.tar.gz.

File metadata

  • Download URL: dsdl-0.1.3.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.0

File hashes

Hashes for dsdl-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b20f0f1d43f530d8c82b8f9d6733e1c43d93eab59c1bb45ab85c1b0f4956c1f6
MD5 6da385340790e51ed33e58091368b323
BLAKE2b-256 d1cd8a1751f7c948f5c9fb329063c28de48de5b96855b2ce538e1bb714edb5e2

See more details on using hashes here.

File details

Details for the file dsdl-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dsdl-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.0

File hashes

Hashes for dsdl-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e12c9d1811378c7a5dfa4c37b7eb8a29478ebaed492d7616b88d2bebafbac31f
MD5 e7f96e17123c60d11bd015835fea165d
BLAKE2b-256 2ef3e22fd39c5b216135036d012e883e366ebf587d83144d9c83bc57f60d7d55

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