Skip to content

How to save / load part of checkpoint? #1904

@Nic-Ma

Description

@Nic-Ma

❓ Questions/Help/Support

Hi @vfdev-5 ,

I have a feature request from Clara users for transfer learning: I trained a model with 4 output classes, then I want to load the checkpoint for a 3 classes task.
How to save weights except for the last output layer in ignite Checkpoint handler? Or skip the last layer when loading checkpoint in the handler?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions