Hi, I ran scripts/utils/prepare_data.sh and encountered such error:
{'dataset': 'I128', 'data_root': '/public/home/gan/data', 'batch_size': 256, 'num_workers': 16, 'chunk_size': 500, 'compression': False}
Using dataset root location /public/home/gan/data/ImageNet
Data will not be augmented...
Loading pre-saved Index file I128_imgs.npz...
Starting to load I128 into an HDF5 file with chunk size 500 and compression None...
100%|██████████| 6/6 [00:00<00:00, 7.26it/s]
Producing dataset of len 1515
Image chunks chosen as (500, 3, 128, 128)
Label chunks chosen as (500,)
Downloading: "https://download.pytorch.org/models/inception_v3_google-1a9a5a14.pth" to /public/home/.cache/torch/checkpoints/inception_v3_google-1a9a5a14.pth
{'dataset': 'I128_hdf5', 'data_root': '/public/home/gan/data', 'batch_size': 64, 'parallel': False, 'augment': False, 'num_workers': 8, 'shuffle': False, 'seed': 0}
Using dataset root location /public/home/gan/data/ILSVRC128.hdf5
Traceback (most recent call last):
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 1319, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 1414, in connect
super().connect()
File "/public/home/.conda/envs/gan/lib/python3.7/http/client.py", line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/public/home/.conda/envs/gan/lib/python3.7/socket.py", line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/public/home/.conda/envs/gan/lib/python3.7/socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calculate_inception_moments.py", line 91, in <module>
main()
File "calculate_inception_moments.py", line 87, in main
run(config)
File "calculate_inception_moments.py", line 55, in run
net = inception_utils.load_inception_net(parallel=config['parallel'])
File "/public/home/gan/BigGAN-PyTorch/inception_utils.py", line 262, in load_inception_net
inception_model = inception_v3(pretrained=True, transform_input=False)
File "/public/home/.conda/envs/gan/lib/python3.7/site-packages/torchvision/models/inception.py", line 53, in inception_v3
progress=progress)
File "/public/home/.conda/envs/gan/lib/python3.7/site-packages/torch/hub.py", line 495, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/public/home/.conda/envs/gan/lib/python3.7/site-packages/torch/hub.py", line 394, in download_url_to_file
u = urlopen(url)
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 1362, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/public/home/.conda/envs/gan/lib/python3.7/urllib/request.py", line 1321, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
I had no clue what cause these error. Could you help me on this issue? Thanks a lot!!!
Hi, I ran scripts/utils/prepare_data.sh and encountered such error:
I had no clue what cause these error. Could you help me on this issue? Thanks a lot!!!