Skip to main content

fotonet

fotonet is an open-source, NMS-free object-detection library for Python covering local inference, video tracking, training, validation, and model export.

Models

Model Generation Parameters Compute (640 × 640) Status
fotonetn v1.1 (UltraDense) 2.85M 6.95 GFLOPs Available
fotonets v1.1 (UltraDense) 11.49M 27.43 GFLOPs Architecture in package, weights coming soon
fotonetm v1.1 (UltraDense) 22.23M 63.38 GFLOPs Architecture in package, weights coming soon
fotonetl v1.1 (UltraDense) 70.32M 161.51 GFLOPs Architecture in package, weights coming soon
fotonete v1 1.70M 5.20 GFLOPs Available

Install

pip install fotonet

For a development checkout:

git clone https://github.com/iMGEai/fotonet.git
cd fotonet
pip install -e ".[dev]"

Quick start

Load the released checkpoint and run inference from Python:

from fotonet import Fotonet

model = Fotonet("fotonetn")
results = model.predict("image.jpg", conf=0.25, imgsz=640)

for detection in results[0].boxes:
    print(detection.cls, detection.conf, detection.xyxy)

For a BGR frame from OpenCV:

frame = cv2.imread("image.jpg")
results = model.predict_bgr(frame, conf=0.25, imgsz=640)

Train

Training uses a YAML dataset configuration and writes checkpoints to a local run directory:

fotonet train \
  model=fotonetn \
  data=path/to/data.yaml \
  epochs=100 \
  batch=16 \
  imgsz=640 \
  run_dir=runs/fotonetn

Resume an interrupted run:

fotonet train \
  model=fotonetn \
  data=path/to/data.yaml \
  resume=runs/fotonetn/fotonet_last.pt

Weights and training outputs are not stored in the Git repository.

Export

from fotonet import Fotonet

model = Fotonet("fotonetn")
output = model.export(
    format="onnx",
    path="exports/fotonetn.onnx",
    imgsz=640,
)
print(output["artifact"])

See the export guide for ONNX, TensorRT, and TorchScript options.

Documentation

License

Apache License 2.0. See LICENSE.

Metadata

Release files for fotonet 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fotonet 1.1
File Size Uploaded Provenance Actions
fotonet-1.1.tar.gz 322.3 kB Without provenance Details for fotonet-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fotonet 1.1
File Interpreter ABI Platform Actions
fotonet-1.1-py3-none-any.whl Python 3 none any Details for fotonet-1.1-py3-none-any.whl

Total release size: 701.6 kB

Release files / fotonet-1.1.tar.gz

Download URL fotonet-1.1.tar.gz
Size 322.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4e4d1c5b382deb972401412150f7426c127af303e709ab7c34dbdbcf5c5cf5f7
BLAKE2b-256 checksum
How to use checksums
42bcfcc1c35a711881b46cb86aabe2f797ea8269520f4fec0a9edc95e428b74c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / fotonet-1.1-py3-none-any.whl

Download URL fotonet-1.1-py3-none-any.whl
Size 379.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
994d58fa71cee2e4d1b40bfa0bd2400dfe9747e5915940bef3487093906595e5
BLAKE2b-256 checksum
How to use checksums
afc51e49bbf68f99e2488a9cc54bf109d3a2b1956834d3aecdf671968a81b626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for fotonet 1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page