Python 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 variableVSP_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 annotationsval
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 scriptsviewer
: view the images and the annotationspreparation
: convert the ground truth annotations into a format suitable for your approachevaluation
: validate your approachannotation
: 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 Distributions
Built Distribution
File details
Details for the file vspscripts_python-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: vspscripts_python-1.2.2-py3-none-any.whl
- Upload date:
- Size: 511.7 kB
- Tags: Python 3
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eee83ec333cd54783b3d0a7b6babfb30f468008c0804ccb1f91f8351a16a04a |
|
MD5 | cd35b19c784fdca455dc13ab937498b9 |
|
BLAKE2b-256 | a2e7cd34d0a027cb702a7706dcdf1cc5b6c6d64161c8bf74e5718369386cfbc6 |