Skip to content

Centralized configuration and utility repo for shared label management, preprocessing, and model metadata shared across repos

Notifications You must be signed in to change notification settings

bernardlawes/vision-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ”— vision-common/README.md

# πŸ”„ Vision Shared Utils

Centralized config and utility repo for label management, preprocessing, and model metadata shared between `vision-train-py` (Python training/export) and `vision-infer-cpp` (C++ inference).

---

## πŸ“ Structure

| Path                          | Purpose |
|-------------------------------|---------|
| `labels/class_map.json`       | Class ID-to-label mapping used across all projects |
| `configs/model_meta.json`     | Input size, normalization values, versioning |
| `tools/python/`               | Python loaders and image preprocessors |
| `tools/cpp/`                  | C++ header-only implementations for matching preprocessing logic |

---

## πŸ“¦ Use in Python

```python
from tools.python.label_loader import load_labels
labels = load_labels("labels/class_map.json")

🧩 Use in C++

#include "tools/cpp/label_loader.h"
auto labels = LoadLabels("labels/class_map.json");

🧠 Goals

Prevent label/preprocessing drift between training and inference

Ensure model configs are reusable, documented, and versioned

Enable full parity across Python and C++ implementations

About

Centralized configuration and utility repo for shared label management, preprocessing, and model metadata shared across repos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published