Skip to content

HF models integration of MONAI networks #8318

@surajpaib

Description

@surajpaib

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions