Skip to content

Issue with torch.save/load #49

@poutine-dejeuner

Description

@poutine-dejeuner

After training the UNet the weights are saved with torch.save(model.state_dict(), 'file.pt') and later the model loaded_model.load_state_dict.load('file.pt', weights_only=True) is created but model and loaded_model have different outputs. This problem did not arise with other models. Any idea what could be the cause?

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