Skip to content

nitid 0.9.4

Choose a tag to compare

@jabrines-vaelsys jabrines-vaelsys released this 06 Nov 20:54
· 14 commits to main since this release

Two additions: a command to compare exported formats on your own hardware, and optional FP16 prediction on CUDA.

pip install -U nitid

Added

  • nitid benchmark exports a model to ONNX, TorchScript and TensorRT and compares mean latency, batches per second and image FPS on the current machine. Runtimes that are not installed are reported as skipped instead of aborting the other formats. Each run writes its artifacts and a benchmark.json under runs/benchmark/. See Benchmark exported formats in the deployment guide.

    nitid benchmark model=model1s formats=[onnx,torchscript] iterations=50
  • half=True in prediction runs the forward pass under CUDA FP16 autocast and casts the outputs back to FP32 before postprocessing, so boxes, masks and NMS keep full precision. On CPU it falls back to FP32.

    nitid predict model=model1l source=image.jpg half=true

Thanks to @shihabmuhtasim for both contributions.

Full changelog: CHANGELOG.md · PyPI