Skip to content

issues in model loading #1

@kayano-mi

Description

@kayano-mi

I have encountered an error when running the evaluate.py script.

The error pertains to the loading of the model from the provided model data file located at https://huggingface.co/ridger/MLP-SNN/blob/main/model.pth.tar. The error message indicates that the hyperparameter “hparams” is empty upon model loading.

Upon inspecting the contents of the model.pth.tar file, I found that the dictionary includes keys such as epoch, arch, state_dict, optimizer, version, args, amp_scaler, and metric, but hparams is not listed.

I want to know if this model file corresponds to the evaluate.py script, or how I should run the evaluate.py scriptcorrectly。

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