Project-MONAI / Project-MONAI/MONAI

CLI command for inspecting checkpoints

Open
#5,537 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Contribution wanted Feature request
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

Is your feature request related to a problem? Please describe.

python -m monai.bundle inspect_ckpt

to display some information about the variables and shapes saved. I saw similar util in tensorflow:

https://github.com/tensorflow/tensorflow/blob/064c7a3120f1571d7c90a777c787571787973518/tensorflow/python/tools/inspect_checkpoint.py#L163-L171

would also be good to have an option of computing hash value, it's used when creating a large_files.yml such as https://github.com/Project-MONAI/model-zoo/blob/dev/models/spleen_ct_segmentation/large_files.yml

cc @yiheng-wang-nv @Nic-Ma

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the python -m monai.bundle inspect_ckpt entry point and compare the requested output with TensorFlow's inspect_checkpoint.py. Use the checkpoint example in the issue and the model-zoo large_files.yml reference to define displaying saved variable information and shapes, plus an optional hash value; done means both inspection and hash output work from the CLI.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.