Skip to main content

Model Visualizer

Project description

NRTK EXPLORER

NRTK Explorer is a web application for exploring image datasets. It provides insights of a image dataset in COCO format and it evaluate image transformation and perturbation resilience of object recognition DL models. It is built using trame by the kitware team.

nrtk explorer screenshot

Features

  • Explore image datasets in COCO format.
  • Apply parametrized image degradation (such as blur) to the images.
  • Benchmark dataset resilience with a differential PCA|UMAP analysis on the embeddings of the images and their transformations.
  • Evaluate object detection DL models in both the source images and its transformations.
  • When possible it will attempt to utilize the user GPU as much as possible to speedup its computations.

Installing

Install it from pypi:

pip install nrtk-explorer

Usage

Explore Hugging Face hosted dataset:

nrtk-explorer --dataset rafaelpadilla/coco2017

Compare inference results for Hugging Face hosted models:

nrtk-explorer --dataset cppe-5 --models qubvel-hf/detr-resnet-50-finetuned-10k-cppe5 ashaduzzaman/detr_finetuned_cppe5

2 COCO format datasets are available at: https://github.com/vicentebolea/nrtk_explorer_datasets/

git clone https://github.com/vicentebolea/nrtk_explorer_datasets.git
nrtk-explorer --dataset ./nrtk_explorer_datasets/coco-od-2017/mini_val2017.json ./nrtk_explorer_datasets/OIRDS_v1_0/oirds.json

CLI flags and options

  • --dataset specify the path to a COCO dataset JSON file, a Hugging Face dataset repository name, or a directory loadable by the Dataset library. You can specify multiple datasets using a space as the separator. Example: nrtk-explorer --dataset ../foo-dir/coco.json cppe-5
  • --repository Specify an existing directory where exported datasets will be saved to and loaded from.
  • --download Cache Hugging Face Hub datasets locally instead of streaming them. When datasets are streamed, nrtk-explorer limits the number of loaded images.
  • --models specify the Hugging Face Hub object detection repository name or a directory loadable by the Transformers library. Load multiple models using space as the separator.
    Example: nrtk-explorer --models hustvl/yolos-tiny facebook/detr-resnet-50
  • -h|--help show the help for the command line options. nrtk-explorer inherits the trame command line options and flags.

nrtk explorer usage

Contribute to NRTK_EXPLORER

git clone https://github.com/Kitware/nrtk-explorer.git
cd nrtk-explorer
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e '.[dev]'
pytest .

For more details on setting up a development environment see DEVELOPMENT docs.

Create release

  1. Merge main to release with a merge commit.
  2. Run "Create Release" workflow with workflow from release branch.
  3. Merge release to main with a merge commit.
  4. Check package versions in Conda Feedstock meta.yaml file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nrtk_explorer-0.8.1.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nrtk_explorer-0.8.1-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

Details for the file nrtk_explorer-0.8.1.tar.gz.

File metadata

  • Download URL: nrtk_explorer-0.8.1.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nrtk_explorer-0.8.1.tar.gz
Algorithm Hash digest
SHA256 3b78d804d5793459de80752dde90dd7691287e61632a4ae805c1840689d6dc2d
MD5 f367b659bc9d7052c2efc8dc62899b60
BLAKE2b-256 413b3a25dd449539e8619a0e74024dc6976c26a239b46e1cfa4bdd1a4a1d8e68

See more details on using hashes here.

File details

Details for the file nrtk_explorer-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: nrtk_explorer-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nrtk_explorer-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fcfce3d80cd07e23258458d50a7fb077c20f152f218c2525cc5b214e90ee561
MD5 a9661798c02097d9a3120088c0d1d8f3
BLAKE2b-256 f0a32bc0abeb52b6c0f34e6698590aff46ced44175d8b34e7ff75190a5585e36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page