You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
When I download cifar10-c, it reports this bug.
robustbench/zenodo_download.py:82, in zenodo_download(record_id, filenames_to_download, save_dir)
76 raise DownloadError(
77 "The hash of the downloaded file does not match"
78 " the expected one.")
79 print("Download finished, extracting...")
80 shutil.unpack_archive(filename,
81 extract_dir=save_dir,
---> 82 format=file["type"])
83 print("Downloaded and extracted.")
KeyError: 'type'
Possible Solution
I checked the variable file here, and it does not contain "type" key now. I guess the reason is that the update of zenodo, such that file does not contain key type anymore. We can solve this by the following modification.
---> 82 format=file['key'].split('.')[-1])
The text was updated successfully, but these errors were encountered:
Bug Description
When I download cifar10-c, it reports this bug.
Possible Solution
I checked the variable file here, and it does not contain "type" key now. I guess the reason is that the update of zenodo, such that file does not contain key type anymore. We can solve this by the following modification.
The text was updated successfully, but these errors were encountered: