Skip to main content
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

Metadata

Release files for pnno 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pnno 0.3.5
File Size Uploaded
pnno-0.3.5.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pnno 0.3.5
File Interpreter ABI Platform
pnno-0.3.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 47.6 kB

Release files / pnno-0.3.5.tar.gz

Download URL pnno-0.3.5.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
64c9c40d14c86621825ec0adab2a45e2ead7b3ae77fedb7b91e239f45728ed05
BLAKE2b-256 checksum
How to use checksums
5d477362a794ce308590e6ab8825aae046827a0c4a02433d924c10d35351a8f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / pnno-0.3.5-py2.py3-none-any.whl

Download URL pnno-0.3.5-py2.py3-none-any.whl
Size 32.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
145f8bac8f958d2a0d402677275b953fa886d8ea97ff120c773de3f7a8c10b5c
BLAKE2b-256 checksum
How to use checksums
9cd396700ca883e3609096009323eff01215b1882876369c8a6c5c786fddf7b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

0.3.7

2 release files

0.3.6

2 release files

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page