Skip to main content

Scripts for the VSP Dataset

Project description

The VSP Dataset

Dataset Structure

The folder structure of the VSP dataset is as follows:

{root}/{split}/{date}/{profile}/{defect}/{layer}___{board}_{number}{type}{ext}

The meaning of the individual elements is:

  • root the root folder of the Cityscapes dataset. Many of our scripts check if an environment variable VSP_DATASET pointing to this folder exists and use this as the default choice.
  • split the split, i.e. train/val/test/train_extra/demoVideo. Note that not all kinds of data exist for all splits. Thus, do not be surprised to occasionally find empty folders.
  • data time of data collection. eg. AIVS_20xx_xx_xx.
  • profile ID of images generated by computer Aided Manufacturing.
  • defect positive and negative defects.
  • layer layer number of multi-layer PCB.
  • board ID of PCB images.
  • number number of defects.
  • ext the extension of the file and optionally a suffix, e.g. _labelTrainIds.png for ground truth files

More types might be added over time and also not all types are initially available. Please let us know if you need any other meta-data to run your approach.

Possible values of split

  • train usually used for training, contains 2975 images with fine and coarse annotations
  • val should be used for validation of hyper-parameters, contains 500 image with fine and coarse annotations. Can also be used for training.

Scripts

Installation

Install vspscripts with setup.py

python setup.py build
python setup.py sdist
pip install . # or "python setup.py install" 

Install vspscripts in develop

python setup.py build
python setup.py develop 

# uninstall in develop 
python setup.py develop --uninstall

Install vspscripts with pip

python -m pip install vspscripts

Graphical tools (viewer and label tool) are based on Qt5 and can be installed via

python -m pip install vspscripts[gui]

Usage

The installation installs the vspscripts scripts as a python module named vspscripts and exposes the following tools

Package Content

The package is structured as follows

  • helpers: helper files that are included by other scripts
  • viewer: view the images and the annotations
  • preparation: convert the ground truth annotations into a format suitable for your approach
  • evaluation: validate your approach
  • annotation: the annotation tool used for labeling the dataset

Note that all files have a small documentation at the top. Most important files

  • helpers/labels.py: central file defining the IDs of all semantic classes and providing mapping between various class properties.

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

vspscripts-1.2.0.tar.gz (1.6 MB view details)

Uploaded Source

File details

Details for the file vspscripts-1.2.0.tar.gz.

File metadata

  • Download URL: vspscripts-1.2.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for vspscripts-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a24bbc25dda20f2956ca3f55f46e442ab554582d83f01012d601dbda0edfcac8
MD5 37672fb59f01c63e9b48b63377053d97
BLAKE2b-256 3d2255727b48b1c622aaf88950bdd40ac663f9e3a6b4ec73fe9aa91667872b86

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