Skip to content

Converting mmengine weight for models to pytorch state dicts? #783

@ayushnangia

Description

@ayushnangia

I'm working on using some pretrained models from mmselfsup in a separate PyTorch project. However, I'm having trouble converting the mmengine-formatted weights to standard PyTorch state dicts.

Specifically:

Is there a recommended way to convert mmengine model weights to PyTorch state dicts?

Are there any gotchas or key differences to be aware of in the weight formats?

Is there existing utility code in mmselfsup or a related library to handle this conversion?

If not, would it be helpful to add such a conversion utility to mmselfsup?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions