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
- Documentation portal
- Installation
- Quick start
- Inference and results
- Training and resume
- Google Colab & cloud training
- Models and runtime
- Model configuration
- Export
- Transform API
- Security
- Contributing
License
Apache License 2.0. See LICENSE.
Metadata
Release files for fotonet 1.1.1
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 |
|---|---|---|---|---|
| fotonet-1.1.1.tar.gz | 322.5 kB | Without provenance | Details for fotonet-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fotonet-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for fotonet-1.1.1-py3-none-any.whl |
Total release size: 702.4 kB
Release files / fotonet-1.1.1.tar.gz
| Download URL | fotonet-1.1.1.tar.gz |
|---|---|
| Size | 322.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de12430d005c0487bf31f521ce9eb0ebb4ea30292323e3e332ab58160372de3
|
|
BLAKE2b-256 checksum How to use checksums |
76f5f85f034c77c7388eb6ada98b8452106c230a10ed4684755f2439bf3a1306
|
| 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.1-py3-none-any.whl
| Download URL | fotonet-1.1.1-py3-none-any.whl |
|---|---|
| Size | 379.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c180a118a0652caf7014978f3d02b96e2c0c0afea12f1d082d0baecf33bed171
|
|
BLAKE2b-256 checksum How to use checksums |
bf895a8cbe74d95c6959cb5669ee5fc8f63fb56ea094a0fd1c51933b969c91c7
|
| 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.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.