Skip to main content

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). Use build_transform(image_size).
  • leilao_ai_common.config: Helpers to resolve classes and image_size from 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leilao_ai_common-1.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

leilao_ai_common-1.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for leilao_ai_common-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a99d0f8643423b5979de50d0e43d7f04c892bc5135a81469bd3eb1769f115381
MD5 d8bcea4fa9642ff02a5314161f45bac9
BLAKE2b-256 2b2a0f83180c613b7c970fb9dba8ac3c9a145fcdc4db6f7318cf54b1d896fd44

See more details on using hashes here.

File details

Details for the file leilao_ai_common-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for leilao_ai_common-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3e1a3df884e145a036a1f6ba3bb3ae9d0a7df89b2e9a89269ff35da5cda166
MD5 6ec7da5b5171053380ff71eb2cefd742
BLAKE2b-256 120f754a7edb5240f1b3f2510cb3cfc2b17d77224013d99d3a218f8b29880bec

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