7536cea09f
* add public pypi * build the thing * remove long description - it certainly can't be the entire readme * delete more lines * try to get the readme back into the long description * only publish to pypi on new tags pushed and point branch back to main * delete yamato and .pypirc file that is no longer necessary Co-authored-by: Drew F <> |
||
---|---|---|
.github/workflows | ||
docs | ||
examples | ||
pysolotools | ||
requirements | ||
tests | ||
.flake8 | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.readthedocs.yaml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
pyproject.toml | ||
requirements.txt | ||
setup.py | ||
sonar-project.properties |
README.md
Introduction
pysolotools is a python package for managing SOLO datasets. It helps to perform following tasks:
- Parse SOLO datasets generated with Unity Perception
- Dataset iterables
- Convert SOLO to COCO format
- Compute common statistics
You can read more about SOLO schema here.
Pre-Requisites
- Install Anaconda or Miniconda (recommended). Install pre-commit.
- Make sure
pip
is installed.
Installation
pip install pysolotools --index-url=https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
SOLO Dataset
Load and iterate frames
from pysolotools.consumers import Solo
solo = Solo(data_path="src_data_path")
for frame in solo.frames():
# perform operations on frame
SOLO2COCO conversion
Supports conversion for these labels: 2d bbox, keypoints, instance, semantic.
from pysolotools.converters.solo2coco import SOLO2COCOConverter
from pysolotools.consumers import Solo
solo = Solo("src_data_path")
dataset = SOLO2COCOConverter(solo)
dataset.convert(output_path="output_path")
Stats computation
Supports bbox, keypoints and image analysis on SOLO dataset.
from pysolotools.consumers import Solo
from pysolotools.stats.analyzers.bbox_analyzer import BBoxHeatMapStatsAnalyzer, BBoxSizeStatsAnalyzer
from pysolotools.stats.handler import StatsHandler
bbheat=BBoxHeatMapStatsAnalyzer()
bbsize=BBoxSizeStatsAnalyzer()
solo = Solo("data_path")
bbh= StatsHandler(solo=solo)
bbh.handle(analyzers=[bbheat,bbsize],cat_ids=[])
Community and Feedback
The Unity Computer Vision demos are open-source and we encourage and welcome contributions. If you wish to contribute, be sure to review our contribution guidelines and code of conduct.
Support
For feature requests, bugs, or other issues, please file a GitHub issue using the provided templates we will investigate as soon as possible.