Project-MONAI / Project-MONAI/MONAILabel

Export torch script when training, Allow to import it for inference

Open
#1,402 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
891
Forks
269
Avg merge
15h 41m
Merged PRs (30d)
1

Description

Describe the solution you'd like
As user trains models, we are changing a lot of hyperparameters which includes number or layer in the network architecture and even change the model architecture completely. This requires user to track the model weight and architecture pairs in the inference.

Describe alternatives you've considered
We can export ts next to checkpoint models which holds the model weights

Additional context

  • Exporting ts can affect performance so it should be a done at the end of the training.
  • Need to accommodate for user stopping the training

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

No files, tests, or entry points are named in the issue. First clarify where training checkpoints are created and how inference loads models, then determine how export timing should handle performance and interrupted training. Done should include a defined TorchScript export and a documented way to import it for inference.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.