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.2.tar.gz (12.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.2-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaac-0.1.2.tar.gz
  • Upload date:
  • Size: 12.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.2.tar.gz
Algorithm Hash digest
SHA256 a44bcce09549cc1f79756c3eec1d4b87b77d27fef6be93394eda00737b01d2ed
MD5 321bed3e1d3753cb533818fff9a0fd8c
BLAKE2b-256 6ed4a4d31820395899cc31f4cadbb1cac1f4610492efa2056135019a5e9b7040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yaac-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c83447ba859b75cc74c201335d5b9fb9390067447a569bc67f0f69c9c06f07ad
MD5 f15c15c2a54fa374e59b2413ae157081
BLAKE2b-256 9d359a15bcb951d924ba52ede092d7e33165325dd67661c9806a2df1ddbd3ef4

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