Error in loading ckpt/cifar10/corruptions/Standard.pt
Closed this issue · 6 comments
The error is "_pickle.UnpicklingError: invalid load key, '<'." when checkpoint = torch.load(model_path, map_location=torch.device('cpu'))
, line 127 in utils.py is executed. The reported size of Standard.pt is 2.2K. Is this file complete?
Seems to be related to upstream change in Robustbench. Your downloaded file is incomplete.
You can refer to wkentaro/gdown#146 RobustBench/robustbench#68
I will try to pull from their fix. Meanwhile, you can directly use the browser to download the files.
Got it thanks! I used the browser to download the files
Could you tell me how to download Standard.pt by browser?
You can find all model's google drive id's here.
For the standard.pt for cifar10, the link is https://docs.google.com/uc?export=download&id=1t98aEuzeTL8P7Kpd5DIrCoCL21BNZUhC
The auto-downloading script is fixed in April. If you are blocked by GFW, you can use proxychains
conda activate cotta
CUDA_VISIBLE_DEVICES=0 proxychains python cifar10c.py --cfg cfgs/cifar10/source.yaml
@qinenergy Thank you a lot for your quick response!