Project-MONAI / Project-MONAI/MONAI

HF models integration of MONAI networks

Open
#8,318 6 comments 2 reactions 3 assignees View on GitHub

@Nic-Ma is already working on this.

Since Mar 2, 2025.

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.
#7833 Continuing the thread here.

HF has grown largely as a model hosting platform. Offering MONAI networks pretrained weights on HF would be very useful in sharing models with the larger community. I'm envisioning this way to be more a developer friendly way to load models for inference and fine-tuning in their own pipelines - outside the bundle ecosystem.

Describe the solution you'd like
#7833 suggests a nice solution, however, further discussion was pending on the implementation specifics.

The Hub suffix for each model was the proposed option by @ericspod.
Another way to offer this functionality could be through dynamic class creation using type so the user can just call a wrapper function and add HF capabilities to MONAI models.

Describe alternatives you've considered
Creating an independent package with class composition for offering specific models https://github.com/project-lighter/lighter-zoo/blob/master/lighter_zoo/wrappers.py

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.