Repository navigation
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