Skip to content

Can't load HRNet Segmentation weights from PTH file #7

Description

@Andrevmatias

With get_segmentation_learner(architecture_name='hrnet', backbone_name='hrnet_w18').

Using the following callback to save the models during training:
SaveModelCallback(monitor='dice_multi', fname='best_model', with_opt=True)
The results of the predictions after loading "best_model.pth" with learner.load are zero-filled masks.

The prediction using the learner right after training are correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions