Skip to main content

A practical GUI and Python toolkit for Pixeltable YOLOX

Project description

PTYOLOX Garage

日本語

PTYOLOX Garage is a practical desktop and Python toolkit for training, testing, and exporting object-detection models with Pixeltable YOLOX. It provides an Ultralytics-style API and a bilingual tkinter GUI for repeatable local and offline workflows.

Features

  • Prepare Label Studio COCO exports for training
  • Train YOLOX nano, tiny, s, m, l, and x models with staged epoch schedules
  • Run inference on images, NumPy arrays, directories, and USB cameras
  • Export trained models to ONNX
  • Switch the GUI between English and Japanese
  • Store reusable CPU/GPU configuration profiles

Requirements

  • Python 3.10–3.13
  • Windows 11 is the primary supported platform
  • NVIDIA CUDA GPU is recommended for training; CPU inference is supported

On Linux, tkinter may need to be installed through the operating-system package manager.

Installation

From PyPI:

pip install ptyolox-garage

For development with uv:

git clone https://github.com/Moge800/ptyolox-garage.git
cd ptyolox-garage
uv sync --group dev

PyTorch builds are hardware-specific. Install the appropriate PyTorch build from the official selector when CUDA support is required.

GUI

ptyolox-garage

PTYOLOX Garage training screen

The GUI contains four work areas: training, image inference, live camera inference, and ONNX export. The initial language follows the operating-system locale and can be changed from the Language menu.

Configuration is stored in the operating system's user configuration directory. On Windows, the default location is %APPDATA%\ptyolox-garage\config.ini.

Python API

from ptyolox_garage import YOLOX

# Train from a Label Studio COCO export.
model = YOLOX("l")
model.train(
    data="data.yaml",
    epochs=[100, 200, 300],
    device="cuda:0",
    batch=16,
)

# Run inference.
model = YOLOX("best_model.pt")
results = model.predict("image.jpg", conf=0.3)
annotated = results[0].plot()

# Export to ONNX.
model.export(format="onnx")

Dataset Configuration

data.yaml points to a Label Studio COCO export and its image directory:

coco_json: C:/datasets/widgets/result.json
images_dir: C:/datasets/widgets/images
output_dir: C:/datasets/widgets/prepared
val_split: 0.2

PTYOLOX Garage remaps COCO category IDs, validates image paths, creates train/validation splits, and writes the directory structure expected by Pixeltable YOLOX.

Model Sizes

Name Depth Width
nano 0.33 0.25
tiny 0.33 0.375
s 0.33 0.50
m 0.67 0.75
l 1.00 1.00
x 1.33 1.25

Development

uv sync --group dev
uv run pytest
uv run ruff check .
uv build

Detailed guides are available in the English documentation and Japanese documentation.

Attribution

PTYOLOX Garage is built on Pixeltable YOLOX, which is derived from Megvii YOLOX. PTYOLOX Garage is an independent project and is not an official Pixeltable product.

License

Licensed under the Apache License 2.0. See NOTICE for attribution.

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

ptyolox_garage-0.1.0.tar.gz (187.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptyolox_garage-0.1.0-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file ptyolox_garage-0.1.0.tar.gz.

File metadata

  • Download URL: ptyolox_garage-0.1.0.tar.gz
  • Upload date:
  • Size: 187.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ptyolox_garage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c74d043446b786496adb1f325760aa907c94f4615e93bcce1811214b136549c
MD5 cdaadce6d9103c2cd826426808aaf09f
BLAKE2b-256 37ecfec835775f92c23d87fe558d0042d2b32b0d42b95e16dda83fbf0f408373

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptyolox_garage-0.1.0.tar.gz:

Publisher: publish.yml on Moge800/ptyolox-garage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ptyolox_garage-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ptyolox_garage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ptyolox_garage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deb0519dad568044536cac490613474af80b1fbbbdbd8b8af50fe5726f352ac3
MD5 532e17d83a5491f4af15304abda152e1
BLAKE2b-256 1efb1b7f936138b7acee6ec70216acc179708e94442f927fdf38b3826e313367

See more details on using hashes here.

Provenance

The following attestation bundles were made for ptyolox_garage-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Moge800/ptyolox-garage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page