Repository navigation
Releases
nitid 0.10.0
Nitid Studio, the web app ("Nitid app"), now lives inside nitid: pip install "nitid[studio]" and
nitid studio run it on your machine with PyTorch or OpenVINO, and a browser-only build is deployed at
https://app.nitid.io, where the models run on your device with ONNX Runtime Web. The default detection
weights change to the COCO-only checkpoints (ADR-0006), so NITID("nitid1s") loads different weights than
in 0.9.x; see "Changed" before upgrading.
Changed
- Default detection weights are now the COCO-only
cococheckpoints (ADR-0006), not the Objects365+COCOobj2cocoones: the D-FINE authors sayobj2cococheckpoints should not be assumed to be commercially cleared and nitid has not established what the Objects365 terms allow.NITID("nitid1s")andnitid downloadnow fetchdfine_<size>_coco_wrapped.pth. Published COCO mAP of the defaults: S 48.5, M 52.3, L 54.0, X 55.8 (was 50.7, 55.1, 57.3, 59.3). To keep the previous weights passweights="obj2coco"/weights=obj2coco; downloading them prints the Objects365 notice. Existing*_obj2coco_wrapped.pthfiles still load by path.
Added
- The Nitid app takes the look and feel of nitid.io: Archivo and JetBrains Mono (self-hosted, SIL OFL 1.1, notices in
THIRD_PARTY_NOTICES.md), the NITID colour palette, the logo in the header and a light/dark switch. The chosen theme lasts for the tab (no persistent storage by policy); with no choice it follows the system. - Nitid app, hosted deployment (browser only, no Python server):
pnpm run build:hosted, Cloudflare headers (studio/hosting/cloudflare/_headers.template, rendered byscripts/assemble_hosted.py) andwrangler.jsoncunderstudio/hosting/cloudflare/, a hosted smoke test without backend that runs same-origin and cross-origin scenarios with negative cases (pnpm run smoke:hosted) and a manual-only workflowstudio-hosted.yml(nothing deploys unlessdeployis ticked). The ONNX models are served from a separate HTTPS origin configured withSTUDIO_MODELS_BASE_URL(CORS, no credentials); the generated CSP opensconnect-srconly to that origin, because Cloudflare static assets allow 25 MiB per file andnitid1sis 39.7 MiB.tools/publish_models.pyandtools/check_hosted_bundle.pybuild and validate the static model bundle (models.json, ONNX, SHA-256, licences) from thehostableentries ofstudio/models.lock.json. Measured ONNX sizes at 640 px: nitid1n 14.7 MiB, s 39.7, m 74.1, l 118.1, x 236.2. Seedocs/studio-hosted.mdanddocs/studio-hosted-models.md. - Segmentation checkpoints are now downloaded from a pinned commit of
ArgoSA/D-FINE-seginstead ofresolve/main, so the files matchstudio/models.lock.json. - The Studio interface, its PDF report and its start-up messages call the app "Nitid app"; the command, extra and package stay
nitid studio/nitid[studio]. - Docs: "Migrating to Studio 0.10" (
docs/studio-migration.md) andstudio/IMPORT.mdrecord what was taken from the oldnitid-studiorepository and the decisions taken at the acceptance of ADR-0005, which moves to Accepted. NITID("nitid1n", task="detect")andnitid download model=nitid1nnow work: the official D-FINE-N COCO checkpoint (dfine_n_coco.pth, SHA-256 verified) is registered. It is COCO-only (no Objects365 variant) and the download prints a notice saying so;weights=defaultfalls back tococofor sizes withoutobj2coco. Nitid Studio lists the pair.- ONNX exports of detection and instance-segmentation models now embed a
nitid_metaentry in the ONNXmetadata_propswith class names, input preprocessing, output contract,topkand default IoU. It is additive and does not change the graph; read it withdfine.export_meta.read_onnx_metaor plainonnx/onnxruntime(seedocs/export.md). nitid studio(andpython -m nitid.studio) starts the local Nitid Studio backend: a token-protected FastAPI app withGET /api/v1/health, Host/Origin guards, security headers and a single-page-app static fallback. It needs the new optional extrapip install "nitid[studio]"; the web UI, model management and jobs arrive in later changes.- Nitid Studio:
GET /api/v1/devices,GET /api/v1/models,POST /api/v1/models/{id}/downloadandGET /api/v1/jobs/{job_id}list the installed compute devices (CPU, OpenVINO CPU/iGPU/NPU, CUDA), the availablenitid1*models and their download state. - Nitid Studio packaging:
scripts/build_studio.pybuilds the UI into the wheel,scripts/verify_wheel.pyandscripts/verify_install.py --require-uicheck size, contents and a clean install; CI has astudio-uijob and releases build the UI first. - Licensing for Studio weights:
studio/models.lock.jsonpins revision, SHA-256 and SPDX licence per model,tools/check_models_lock.pyvalidates it, andTHIRD_PARTY_NOTICES.mdplusdocs/licensing/studio-weights.mddocument redistribution terms. - Nitid Studio in-browser engine: ONNX Runtime Web in a Web Worker with Pillow-exact preprocessing,
nitid_metadecoding for detection and segmentation, and a Cache API keyed by SHA-256; parity fixtures instudio/compare it with the Python predictor. - Nitid Studio result exports: annotated PNG, JSON, CSV, YOLO TXT (with mask polygons), crops, ZIP bundle and a PDF report, plus an
ExportMenucomponent; adds the lazy-loadedfflatedependency. - Nitid Studio Local panel (
/run/local): model download, backend/device picker, multi-image upload, run polling, canvas results with confidence and class filters, and anExportMenuslot for the unified UI. - Nitid Studio runs API (
POST/GET/DELETE /api/v1/runs, per-item JSON and image, CSV and ZIP export, one inference at a time, lazy model loading);/healthreportsapi_versionas an integer, 401/403 use the error envelope,nitid studioprints the URL only once the server is listening, and Ctrl+C exits with code 0. - Nitid Studio ONNX endpoints:
GET /api/v1/onnx/{model}and/onnx/{model}/metaexport on demand (cached, serialised, ETag = sha256, 304 onIf-None-Match). - Nitid Studio unified UI for both deployments: server mode, in-browser mode with ONNX Runtime Web, server-vs-browser comparison with IoU agreement, and the export menu everywhere; the hosted catalogue is set with
STUDIO_MODELS_BASE_URL. - Nitid Studio end-to-end suite (
pytest studio/e2e, real server and real Chrome) with a server-vs-browser parity test, and an optional non-blockingstudio-e2eCI job. - Nitid Studio draws the mask outlines of server segmentation runs and includes them as polygons in the YOLO TXT, JSON and annotated PNG exports (server results have no pixel masks, so CSV
mask_pixelsand crops are unchanged).
Fixed
- Nitid Studio sends
X-Frame-Options: DENYand CSPframe-ancestors 'none'so it cannot be framed by another site, and no longer logs a favicon 404 on every page load. - ONNX export with
simplify=Trueno longer leaves a stalegraph.value_info, which made instance-segmentation models fail the full ONNX check and load in onnxruntime-web; outputs are bit-identical.
Install: pip install nitid==0.10.0
Full changelog: https://github.com/Nitidio/nitid/blob/v0.10.0/CHANGELOG.md
nitid 0.9.6
Metadata-only release: PyPI and the repository now present nitid.io as the
project's home, with the tagline "Nitid Object detection that's actually open
source". No code or model changes.
Changed
- Project metadata: the PyPI
Homepagenow points to https://nitid.io (documentation stays on GitHub Pages) and the tagline reads "Nitid Object detection that's actually open source" in the README, docs and MkDocs config.
Install: pip install nitid==0.9.6
Full changelog: https://github.com/Nitidio/nitid/blob/v0.9.6/CHANGELOG.md
nitid 0.9.5
nitid's public models now carry the project's name: use nitid1n, nitid1s,
nitid1m, nitid1l and nitid1x, for example
NITID("nitid1s", task="detect") or NITID("nitid1s", task="segment"). Code
written for earlier releases keeps working: the old model1* names resolve to
the new ones and emit a DeprecationWarning that names the replacement. This
release also adds nitid.__version__, and the tooling that publishes releases
from now on.
Changed
- Public model names are now
nitid1n,nitid1s,nitid1m,nitid1land
nitid1x(see ADR-0004).NITID.nitid_model, the CLI help, the docs and the
benchmark tooling use the new names.
Added
tools/check_roadmap.pychecks that every issue link indocs/roadmap.md
exists and that "Near-term priorities" only links to open issues.nitid.__version__is now available (it was only exposed as
dfine.__version__). A unit test keeps it equal to the version in
pyproject.toml(#24).spaces/demo/holds the source of an interactive Gradio demo (detection and
instance segmentation on CPU), with unit and integration tests (#7). It is not
published yet.d-fine-n/s/m/l/x(anddfine_*) are accepted as technical aliases for the
current model generation.nitid1-sand any letter case are also accepted.dfine.nitid.is_public_model_namedecides which names are routed through the
public-name resolver.- Tagging a version now creates the GitHub Release automatically after the PyPI
upload: notes come from the matchingCHANGELOG.mdsection, the wheel and
sdist are attached, anda/b/rc/devtags are marked as pre-releases
(#3).scripts/changelog_notes.pypreviews the notes.
Deprecated
- The
model1n/s/m/l/xnames remain accepted and resolve tonitid1*;
NITID("model1s")now emits aDeprecationWarningnaming the canonical
replacement. They will be removed in a later minor release.
Install: pip install nitid==0.9.5
Full changelog: https://github.com/Nitidio/nitid/blob/v0.9.5/CHANGELOG.md
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
nitid 0.9.3
Pretrained detection models now reach the D-FINE paper's COCO accuracy. In 0.9.1 and 0.9.2 they were 4 to 11 mAP points below it. The same encoder fix applies to pretrained segmentation models.
pip install -U nitidIf you fine-tuned models with nitid 0.9.x: they were trained with the encoder activation this release removes, so re-validate them after upgrading.
Fixed
- Pretrained detection models reach the D-FINE paper's COCO accuracy again. The encoder's lateral convolutions applied a SiLU that D-FINE does not have (
model1sobj2coco: 39.3 → 50.7 mAP50-95 on COCO val2017). Segmentation models share the encoder and get the same fix. model1mreturns valid detections on Intel GPUs with FP16 precision. Theopenvinoextra now requires OpenVINO 2026.4.1 or later; 2026.2.1 corrupted every inference after the first one on the GPU, which gave 0.0 mAP.
Added
tools/benchmark_openvino.pymeasures latency and COCO mAP of the exported detection models on OpenVINO CPU, GPU and NPU devices, using the same method as the D-FINE paper's T4 TensorRT figures, and writes a JSON report.scripts/benchmark_openvino.shchecks the machine, downloads COCO val2017 and runs it end to end.- The README's detection table gains the latency measured with that tool on the Intel Arc B390 integrated GPU (Core Ultra X7 358H, OpenVINO 2026.4.1, FP16).
Changed
- The MLflow integration names the experiment
nitidwhen training has noproject; it used to fall back to/Shared/Ultralytics. Setproject,experiment_name, orMLFLOW_EXPERIMENT_NAMEto keep the old name.
Full changelog: CHANGELOG.md · PyPI
Example datasets v1
Example datasets used by nitid's training examples. This is not a library release: it does not change the nitid package.
Assets
| File | Contents | Tasks |
|---|---|---|
coco-mini.zip |
COCO-mini: 128 train and 32 val images, COCO format | task=detect, task=segment |
sha256 of coco-mini.zip:
6b5cbb22ead37ac2109e0951560f00eb2dd64eb17985c32374c7f902eee86688
Where it is used
configs/datasets/coco-mini.yml and the CUDA and OpenVINO training guide point to this asset. Download and unzip it, then train with data=configs/datasets/coco-mini.yml.
Licences and attribution
- Images come from COCO 2017 val, restricted to those licensed CC BY 2.0, "No known copyright restrictions" or "United States Government Work".
- COCO annotations © COCO Consortium, licensed CC BY 4.0.
ATTRIBUTION.mdinside the archive lists the source and licence of every image.
Reproducibility
The archive is built deterministically with tools/build_coco_mini.py, so the sha256 above can be reproduced from COCO 2017 val.