FOMO: Fast Object Localization
FOMO is a lightweight point localization model designed for edge AI applications. Instead of regressing bounding boxes, FOMO downsamples the input image (for example, mapping a 192x192 input to a 24x24 grid) and predicts class probabilities and coordinates on a per-cell basis.
Installation
Install the package via PyPI:
pip install fomo-edge-ai
Usage
# Model
from fomo import FOMO
model = FOMO(model_path=None, size="s", nb_classes=1, device="cpu")
# Training
results = model.train(
allow_experimental=True,
data=str(data_yaml_path), # YOLO style data.yaml
# Only bounding-box style datasets supported.
# TODO: add support for point-level annotation datasets
epochs=EPOCHS,
batch=BATCH,
lr0=3e-4,
eval_interval=1,
workers=2,
device=device,
project=PROJECT,
name=RUN_NAME,
exist_ok=True,
patience=0,
)
# Export as TFLite model
fp32_path = trained.export(output_path=str(weights_dir / f"{RUN_NAME}_fp32.tflite"))
# INT8 Quantization
int8_path = quantizer.quantize(
fp32_tflite=fp32_path,
calibration_data=calib_iter,
config=config,
output_path=str(weights_dir / f"{RUN_NAME}_int8.tflite")
)
Model Hosting
Models are currently available on Hugging Face:
https://huggingface.co/fomo-edge-ai/FOMO
Examples
Refer to examples/ for detailed examples on training and inference.
Tests
Tests are completed using modal. Install the modal cli and run
make test
License
Code is licensed under the Apache License 2.0. Pre-trained weights are hosted externally and may inherit separate licensing terms. Check details in the specific weight repositories.
Metadata
Release files for fomo-edge-ai 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fomo_edge_ai-0.0.12.tar.gz | 135.4 kB | Without provenance | Details for fomo_edge_ai-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fomo_edge_ai-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for fomo_edge_ai-0.0.12-py3-none-any.whl |
Total release size: 288.6 kB
Release files / fomo_edge_ai-0.0.12.tar.gz
| Download URL | fomo_edge_ai-0.0.12.tar.gz |
|---|---|
| Size | 135.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90cfd9ced764c4aede617398862bd20d12be54bfd97fb9e834efa617dee62aad
|
|
BLAKE2b-256 checksum How to use checksums |
37bba97edf50ea13863908d871e293fb60588d566dcba7938e25991e560164e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / fomo_edge_ai-0.0.12-py3-none-any.whl
| Download URL | fomo_edge_ai-0.0.12-py3-none-any.whl |
|---|---|
| Size | 153.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
440cd5404b3e0722d1dd25fad78ca591fcbf834d4dc5baad981173c77071cb22
|
|
BLAKE2b-256 checksum How to use checksums |
b82dc6a7eca56c255d6b9eec67795b4b45bace36a1a167818703a3a0b5f66e09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for fomo-edge-ai 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.