YAAC - Python package for loading and using trained AI models
Project description
yaac
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
TrainableModelinterface 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
- Contributing Guide - For developers who want to contribute
- Publishing Guide - For maintainers publishing new versions
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3896baeaac7af120a9586ce0569fbd04e1384b3443d8027b234353732e7632d2
|
|
| MD5 |
5d83ccadef29b5eadac7d1825fc4c7de
|
|
| BLAKE2b-256 |
9988aaee822658546c51977ed434ba4f7fc0768e820b55258ecb527f050cba22
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0401a633b7e1d5015d41f9cb678377db20c2dea626dc4b66d70cdf001b461369
|
|
| MD5 |
f21eab49cb0fbeb1ffbe716e4ce5b2b9
|
|
| BLAKE2b-256 |
8641100856f968643fb4cad087e72e326e9e1c520e46705f0fa1481c76378705
|