Sign inSign up

skywalker0501/yolomaster-api

By skywalker0501

•Updated 10 days ago

Image
0

77

skywalker0501/yolomaster-api repository overview

⁠Endpoints

methodpathpurpose
POST/v1/inferone image; return=json, txt, coco or annotated JPEG
POST/v1/infer/batchseveral files in one multipart body, independent batch-1 jobs
POST/v1/videovideo upload, NDJSON stream of per-frame results
WS/v1/streambinary frames in, JSON per frame out, keep-latest backpressure
GET/v1/models, /v1/models/{id}/load, /unloadmodel registry
GET/v1/stats, /metricsrolling latency percentiles, Prometheus exposition
GET/healthz, /readyzliveness and readiness

Responses carry per-stage timings (queue, decode, pre, infer, post). Overload returns 503 with Retry-After; deadlines return 504; shutdown drains in-flight work.

⁠Measured on an NVIDIA L40S, COCO val2017 (5000 images)

modelbackendmodel timerequest p50 (1 client)throughput (8 clients, 4 workers)
v0.1-N fp16TensorRT1.8 ms7.7 ms379 img/s
EsMoE-N fp16TensorRT1.6 ms6.9 ms359 img/s
v0.1-N fp32ONNX Runtime CUDA4.3 ms9.8 ms378 img/s
v0.1-N fp32ncnn CPU (6 threads)106 ms118 ms

HTTP overhead is about 1 ms per request; detections are numerically identical to the bare CLI runtime. Full tables: API_SERVER_RESULTS.md in the repository.

⁠Configuration

/opt/yolomaster/server.json lists the models (id, path, backend, device, precision, threads, workers, conf, iou). Mount your own over it, or pass -m id=path,backend=trt,device=cuda,precision=fp16 on the command line. Extra models go under a mounted /opt/yolomaster/models/. Full reference: docs/API.md and deploy/README.md in the repository.

⁠Image

Base nvidia/cuda:12.9.1-cudnn-runtime-ubuntu22.04; needs the NVIDIA container toolkit for GPU use. Includes the yolomaster_edge CLI (docker run ... cli --help). Built with Bazel and rules_oci. Third-party licenses under /opt/yolomaster/LICENSES/. Version 1.2.0 tracks yolo-master-edge main.

The numbers are the MEASURED ones from the results document; nothing in it claims upstream capabilities as ours beyond the model names.

Tag summary

Content type

Image

Digest

sha256:65771d282…

Size

4.9 GB

Last updated

10 days ago

docker pull skywalker0501/yolomaster-api