Skip to main content

Yet Another AI Company - Python package for loading and using trained image classification models

Project description

yaac

PyPI version Python 3.10+ License

Yet Another AI Company - Python package for loading and using trained image classification 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.1.tar.gz (12.8 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.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaac-0.1.1.tar.gz
  • Upload date:
  • Size: 12.8 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.1.tar.gz
Algorithm Hash digest
SHA256 589939639c1d223e0ef08b199ee6f8a5ade784830f1308fdd242ef8b95777c86
MD5 d521e62e5c018304631d7856d30630df
BLAKE2b-256 ea9e1c3ac2c2c10ec18ddd47554d743f03aff38dc0940484e6d6679dc1a44714

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yaac-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3650914f53315d5f7432152ca93f2c6d01d14bfd573803803dad36b1a244de8
MD5 2c1f55daff03adedecf7de19bda4a38c
BLAKE2b-256 6f6b8198f042098c189c581b7f73949f53548775bef414e825e2c4932b71a961

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