Closed giladcohen closed 8 months ago
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 https://drive.google.com/uc?id=<gdrive_id>
, where <gdrive_id>
can be read in model_zoo/cifar10.py
(e.g. here).
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:
from robustbench.data import load_cifar10
x_test, y_test = load_cifar10(n_examples=50)
from robustbench.utils import load_model
model = load_model(model_name='Carmon2019Unlabeled', threat_model='Linf')
returns:
UnpicklingError Traceback (most recent call last)
UnpicklingError: invalid load key, '<'.
This error was produced using your quickstart notebook on google colab. I also got the same error when trying to load models on my personal machine.
Hi,
I'm not sure what the problem is, but it seems related to https://github.com/wkentaro/gdown/issues/291. Here https://github.com/RobustBench/robustbench/tree/fix-download is a fix following https://github.com/wkentaro/gdown/pull/294, please let me know if it works for you.
That seems to have done the trick. Thank you.
It should be fixed with https://github.com/RobustBench/robustbench/pull/164, feel free to reopen if not.
I'm experiencing the same issue.
Executing the following code:
from robustbench.model_zoo.cifar10 import linf from robustbench.utils import load_model
errors = []
for key in linf: try: model = load_model(key, dataset='cifar10', threat_model='Linf') except Exception as e:
print("The error is:", e)
errors.append(key)
print(f"Key error - {key}")
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,
https://github.com/RobustBench/robustbench/pull/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 The error is: No module named 'easydict'
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! Sorry for the late response, I was away. Maybe it's happens as i"m working with Windows. I try to install the branch at Colab and it works.
Anyway, thanks a lot again :)
Running:
returns:
my pip list output is attached. pip_list.txt