ebagdasa / backdoors101

Backdoors Framework for Deep Learning and Federated Learning. A light-weight tool to conduct your research on backdoors.
MIT License
337 stars 82 forks source link

I can't download dateset #4

Closed cslvjt closed 3 years ago

cslvjt commented 3 years ago

when I run "python training.py --name mnist --params configs/mnist_params.yaml --commit none" my ternimal will says" urllib.error.HTTPError: HTTP Error 503: Service Unavailable"

ebagdasa commented 3 years ago

can you provide full trace?

cslvjt commented 3 years ago

can you provide full trace?

Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to .data/MNIST\raw\train-images-idx3-ubyte.gz 0it [00:00, ?it/s]Traceback (most recent call last): File "training.py", line 119, in helper = Helper(params) File "F:\01资料\科研训练\myfind\backdoors101-master\helper.py", line 40, in init self.make_task() File "F:\01资料\科研训练\myfind\backdoors101-master\helper.py", line 64, in make_task self.task = task_class(self.params) File "F:\01资料\科研训练\myfind\backdoors101-master\tasks\task.py", line 42, in init self.init_task() File "F:\01资料\科研训练\myfind\backdoors101-master\tasks\task.py", line 45, in init_task self.load_data() File "F:\01资料\科研训练\myfind\backdoors101-master\tasks\mnist_task.py", line 27, in load_data transform=transform_train) File "D:\Anaconda\envs\backdoor\lib\site-packages\torchvision\datasets\mnist.py", line 79, in init self.download() File "D:\Anaconda\envs\backdoor\lib\site-packages\torchvision\datasets\mnist.py", line 146, in download download_and_extract_archive(url, download_root=self.raw_folder, filename=filename, md5=md5) File "D:\Anaconda\envs\backdoor\lib\site-packages\torchvision\datasets\utils.py", line 256, in download_and_extract_archive download_url(url, download_root, filename, md5) File "D:\Anaconda\envs\backdoor\lib\site-packages\torchvision\datasets\utils.py", line 84, in download_url raise e File "D:\Anaconda\envs\backdoor\lib\site-packages\torchvision\datasets\utils.py", line 72, in download_url reporthook=gen_bar_updater() File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 247, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 222, in urlopen return opener.open(url, data, timeout) File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 531, in open response = meth(req, response) File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 569, in error return self._call_chain(args) File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 503, in _call_chain result = func(args) File "D:\Anaconda\envs\backdoor\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 503: Service Unavailable 0it [00:24, ?it/s]

cslvjt commented 3 years ago

Thank you for your reply!I have got the reason.

ebagdasa commented 3 years ago

ok, good.