Repository navigation
nitid 0.9.4
Two additions: a command to compare exported formats on your own hardware, and optional FP16 prediction on CUDA.
pip install -U nitidAdded
-
nitid benchmarkexports 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 abenchmark.jsonunderruns/benchmark/. See Benchmark exported formats in the deployment guide.nitid benchmark model=model1s formats=[onnx,torchscript] iterations=50
-
half=Truein 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