-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Getting pickle error upon loading existing model #68
Comments
There seems to be some issue with the automatic downloading from Google Drive (see e.g. here). We are looking into this! |
It should still be possible to download the models via browser with |
should be resolved now with the latest commit! sorry again. feel free to reopen the issue if the problem persists. |
Hi. It appears the error is back. Running:
returns:
UnpicklingError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
3
4 from robustbench.utils import load_model
----> 5 model = load_model(model_name='Carmon2019Unlabeled', threat_model='Linf')
2 frames
[/usr/local/lib/python3.10/dist-packages/torch/serialization.py](https://localhost:8080/#) in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
1244 "functionality.")
1245
-> 1246 magic_number = pickle_module.load(f, **pickle_load_args)
1247 if magic_number != MAGIC_NUMBER:
1248 raise RuntimeError("Invalid magic number; corrupt file?")
This error was produced using your quickstart notebook on google colab. |
Hi, I'm not sure what the problem is, but it seems related to wkentaro/gdown#291. Here https://github.com/RobustBench/robustbench/tree/fix-download is a fix following wkentaro/gdown#294, please let me know if it works for you. |
That seems to have done the trick. Thank you. |
It should be fixed with #164, feel free to reopen if not. |
I'm experiencing the same issue. Executing the following code: from robustbench.model_zoo.cifar10 import linf errors = [] for key in linf: print("Number of models loaded successfully:", len(linf) - len(errors)) Only 8 models are successfully loaded, with all errors being identical: "The error is: invalid load key, '<'." |
Hi, #175 should fix this, could you please let me know if it works for you (you'll have to install the branch version)? |
Thanks a lot ! :) All seems to work except of Sehwag2021Proxy |
It's a bit weird, I just tried and it seems to work fine. Also, it doesn't seem an issue related to downloading. |
Hi! Anyway, thanks a lot again :) |
Running:
returns:
my pip list output is attached.
pip_list.txt
The text was updated successfully, but these errors were encountered: