Traceback (most recent call last):
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/msdatasets/utils/oss_utils.py", line 100, in download
candidate_key) else candidate_key_backup
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/oss2/api.py", line 1085, in object_exists
self.get_object_meta(key, headers=headers)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/oss2/api.py", line 1061, in get_object_meta
resp = self.__do_object('HEAD', key, params=params, headers=headers)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/oss2/api.py", line 2838, in __do_object
return self._do(method, self.bucket_name, key, **kwargs)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/oss2/api.py", line 239, in _do
raise e
oss2.exceptions.ServerError: {'status': 403, 'x-oss-request-id': '648BB24908F5D2343661E2F1', 'details': {'Code': 'InvalidAccessKeyId', 'Message': 'The OSS Access Key Id you provided does not exist in our records.', 'RequestId': '648BB24908F5D2343661E2F1', 'HostId': 'dataset-hub.oss-cn-hangzhou.aliyuncs.com', 'OSSAccessKeyId': 'STS.NUHEJq9wR2Ns3UAShMtMxjmNs', 'EC': '0002-00000002'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "download.py", line 64, in <module>
for t in (iter(data)):
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/msdatasets/ms_dataset.py", line 74, in __iter__
for item in self._hf_ds:
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/msdatasets/dataset_cls/dataset.py", line 101, in __iter__
ex_cache_path = dl_manager.download_and_extract(v)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/datasets/download/streaming_download_manager.py", line 973, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/datasets/download/streaming_download_manager.py", line 909, in download
url_or_urls = map_nested(self._download, url_or_urls, map_tuple=True)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 436, in map_nested
return function(data_struct)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/msdatasets/download/download_manager.py", line 61, in _download
url_or_filename, download_config=self.download_config)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/msdatasets/utils/oss_utils.py", line 118, in download
self._reload_sts()
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/msdatasets/utils/oss_utils.py", line 69, in _reload_sts
revision=self.revision)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/hub/api.py", line 727, in get_dataset_access_config_session
raise_on_error(resp)
File "/home/users/anaconda3/envs/modelscope/lib/python3.7/site-packages/modelscope/hub/errors.py", line 108, in raise_on_error
raise RequestError(rsp['Message'])
modelscope.hub.errors.RequestError: 当前操作需要登录,请登录后操作
在下载 Classification Train 数据集时遇到了中断,可以尝试重新下载该数据集。ModelScope 提供了多个数据集下载方式,可以选择其中一种方式进行下载。
以下是一些下载方式的示例:
使用 ModelScope 网站上提供的下载链接:
在浏览器中打开以下链接:https://modelscope.ai/datasets/classification_train ↗
点击“Download”按钮,下载数据集的压缩包。
使用命令行下载数据集:
在终端中执行以下命令:modelscope download_dataset classification_train
这将下载数据集并将其保存到当前工作目录中。