Skip to main content

YAAC - Python package for loading and using trained AI models

Project description

yaac

PyPI version Python 3.10+ License

YAAC - Python package for loading and train AI models.

Installation

Install from PyPI:

pip install yaac

Quick Start

Load a trained model and run inference:

from yaac.common.model_loader import load_model_from_checkpoint
import torch

# Load your trained model
model, config = load_model_from_checkpoint("path/to/checkpoint", device="cuda")

# Run inference
image = torch.randn(1, 3, 224, 224)  # Your image tensor
with torch.no_grad():
    predictions = model(image)
    processed = model.postprocess(predictions)

print(f"Predictions: {processed}")

What is yaac?

yaac is a Python package that provides:

  • Model Loading: Load trained image classification models from exported checkpoints (safetensors + config.json)
  • Model Interface: Standardized TrainableModel interface for consistent model usage
  • SIC Models: Support for Simple Image Classifier (SIC) models with configurable backbones and heads

Models are trained using YAAC's infrastructure and exported in a format compatible with this package.

Documentation

License

Apache 2.0 - See LICENSE for details.

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

yaac-0.1.3.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

yaac-0.1.3-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file yaac-0.1.3.tar.gz.

File metadata

  • Download URL: yaac-0.1.3.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yaac-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3896baeaac7af120a9586ce0569fbd04e1384b3443d8027b234353732e7632d2
MD5 5d83ccadef29b5eadac7d1825fc4c7de
BLAKE2b-256 9988aaee822658546c51977ed434ba4f7fc0768e820b55258ecb527f050cba22

See more details on using hashes here.

File details

Details for the file yaac-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: yaac-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yaac-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0401a633b7e1d5015d41f9cb678377db20c2dea626dc4b66d70cdf001b461369
MD5 f21eab49cb0fbeb1ffbe716e4ce5b2b9
BLAKE2b-256 8641100856f968643fb4cad087e72e326e9e1c520e46705f0fa1481c76378705

See more details on using hashes here.

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