Skip to main content

Script for annotation data processing

Project description

Language: 🇺🇸 🇨🇳

«pnno» realizes the conversion of dataset or annotation data in different formats

This repo provides several script tools for the following aspects:

  1. convert different data sets into the format specified by the algorithm. Currently implemented
    1. LabelImg annotation -> YoloV5 data format
    2. VisDrone data set -> TLT KITTI data format
  2. convert PyTorch ImageFolder dataset to LMDB format
  3. show image in command line

Table of Contents

Background

The processing of data sets is often involved in the process of algorithm development, which needs to be converted into the format specified in algorithm training. Many scripts are accumulated over time. Whether these programs can be integrated together can not only be reused, but also reduce the difficulty of the next implementation. Let's Do It ! ! !

Install

$ pip install pnno

Usage

Dataset/Label Convert

Basic operation as follows:

$ pnno -f <cfg_file>

Operation 1: convert tzutalin/labelImg label file to ultralytics/yolov5 specified dataset format. Refer to the configuration file configs/labelimg_2_yolov5.yaml

Operation 1: convert VisDrone/VisDrone-Dataset dataset to KITTI label format. Refer to the configuration file configs/visdrone_2_tlt.yaml

Operation 3: convert PyTorch ImageFolder dataset to LMDB format. Refer to demo/imagenet_lmdb

For more usage, refert to demo/

Show Image in Command Line

$ simg -f <IMG_FILE>

Maintainers

  • zhujian - Initial work - zjykzj

Contributing

Anyone's participation is welcome! Open an issue or submit PRs.

Small note:

License

Apache License 2.0 © 2020 zjykzj

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

pnno-0.3.6.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

pnno-0.3.6-py2.py3-none-any.whl (32.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pnno-0.3.6.tar.gz.

File metadata

  • Download URL: pnno-0.3.6.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2.post20210110 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for pnno-0.3.6.tar.gz
Algorithm Hash digest
SHA256 9449f7f7ee9f4edee52b3580ce7056f4a73634740af60097fe98df6d9e681476
MD5 8f3b289409386a9825f4b4d6f44b5f95
BLAKE2b-256 6908ff3998558ce21b7453cfd8c982526652da9282339995e411f970689faa6d

See more details on using hashes here.

File details

Details for the file pnno-0.3.6-py2.py3-none-any.whl.

File metadata

  • Download URL: pnno-0.3.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2.post20210110 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for pnno-0.3.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4e3a18307ddfc941b210a291f03897553386b48c53288cf5cd21a11e697a0cb
MD5 661f633ce4bd7869dba9fa591cb4ef98
BLAKE2b-256 d70a311ca97ae4ac1315a1c72876924fc4ffc14fb9814c2ef12b314e759e329c

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