Python toolchain for SOLO.
Перейти к файлу
fsudrew07 7536cea09f
Chore/public pypi (#135)
* 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 <>
2022-11-21 12:29:08 -06:00
.github/workflows Chore/public pypi (#135) 2022-11-21 12:29:08 -06:00
docs
examples added "r" to path 2022-11-03 10:43:29 -07:00
pysolotools Merge branch 'main' into steve/changes_to_solo_spec 2022-11-16 14:07:57 -08:00
requirements update setup tools (#133) 2022-11-17 12:56:27 -06:00
tests Replace print with logging 2022-11-16 12:25:57 -08:00
.flake8
.gitignore
.pre-commit-config.yaml Update .pre-commit-config.yaml 2022-11-16 14:12:49 -08:00
.readthedocs.yaml
CODE_OF_CONDUCT.md Add files via upload 2022-11-09 11:03:22 -08:00
CONTRIBUTING.md Create CONTRIBUTING.md 2022-11-09 09:24:48 -08:00
LICENSE Update LICENSE 2022-11-15 10:54:39 -08:00
README.md Remove reference to 'internal pip' 2022-11-21 08:10:14 -08:00
pyproject.toml
requirements.txt
setup.py Chore/public pypi (#135) 2022-11-21 12:29:08 -06:00
sonar-project.properties Chore/sonarqube tests (#134) 2022-11-17 14:11:13 -06:00

README.md

The open-source tool for loading and analyzing Unity SOLO datasets

PyPI version License

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

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.

License

Apache License 2.0