Skip to content

Regarding run_cifar_rand_inf.sh error (_pickle.UnpicklingError: invalid load key, '<'.) #24

Description

@dongfeicui
from robustbench.utils import load_model

model = load_model(model_name='Standard', dataset='cifar10', threat_model='Linf')

I get Standard.pt but also I get error

_pickle.UnpicklingError: invalid load key, '<'.

This is because the content of the "Standard.pt" file is, in reality, an HTML webpage used to download the model weights from Google Drive. You need to change the file extension to ".html," then open it with a web browser, and proceed to download the weights. In my example, you will obtain "natural.pt.tar." You should then rename it to "Standard.pt," as this is the file that the program is actually expecting.

china download mirror or visit this website

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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