Common utilities shared across leilao-ai projects
Project description
leilao-ai-common
Common utilities shared across Leilao AI projects.
Modules
leilao_ai_common.preprocess: Image preprocessing transforms (ImageNet mean/std). Usebuild_transform(image_size).leilao_ai_common.config: Helpers to resolveclassesandimage_sizefrom training YAML or checkpoints.
Install (editable)
pip install -e ./leilao-ai-common
Usage
from leilao_ai_common.preprocess import build_transform
from leilao_ai_common.config import resolve_classification_settings
# Build transform
transform = build_transform(448)
# Resolve classes and image size
classes, image_size = resolve_classification_settings(
yaml_path="leilao-ai-damage-classifier/configs/train.yaml",
checkpoint_path="leilao-ai-damage-classifier/outputs/training/run_resnet18_5/best_model.pt",
)
Project details
Release history Release notifications | RSS feed
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 leilao_ai_common-1.0.2.tar.gz.
File metadata
- Download URL: leilao_ai_common-1.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99d0f8643423b5979de50d0e43d7f04c892bc5135a81469bd3eb1769f115381
|
|
| MD5 |
d8bcea4fa9642ff02a5314161f45bac9
|
|
| BLAKE2b-256 |
2b2a0f83180c613b7c970fb9dba8ac3c9a145fcdc4db6f7318cf54b1d896fd44
|
File details
Details for the file leilao_ai_common-1.0.2-py3-none-any.whl.
File metadata
- Download URL: leilao_ai_common-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c3e1a3df884e145a036a1f6ba3bb3ae9d0a7df89b2e9a89269ff35da5cda166
|
|
| MD5 |
6ec7da5b5171053380ff71eb2cefd742
|
|
| BLAKE2b-256 |
120f754a7edb5240f1b3f2510cb3cfc2b17d77224013d99d3a218f8b29880bec
|