During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hu/.local/lib/python3.6/site-packages/visdom/__init__.py", line 446, in _send
    data=json.dumps(msg),
  File "/home/hu/.local/lib/python3.6/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/hu/.local/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/hu/.local/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/hu/.local/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/home/hu/.local/lib/python3.6/site-packages/requests/adapters.py", line 513, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92289e3358>: Failed to establish a new connection: [Errno 111] Connection refused',))
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4518> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=128x192 at 0x7F92289A45F8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A44A8> torch.Size([3, 224, 224])
<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=192x128 at 0x7F92289A4588> torch.Size([3, 224, 224])
Traceback (most recent call last):
  File "/home/hu/下载/Corel5k (3).py", line 217, in <module>
    for i, (input, target) in  enumerate(testloader):
  File "/home/hu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 286, in __next__
    return self._process_next_batch(batch)
  File "/home/hu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 307, in _process_next_batch
    raise batch.exc_type(batch.exc_msg)
RuntimeError: Traceback (most recent call last):
  File "/home/hu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 57, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "/home/hu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 138, in default_collate
    return [default_collate(samples) for samples in transposed]
  File "/home/hu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 138, in <listcomp>
    return [default_collate(samples) for samples in transposed]
  File "/home/hu/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 115, in default_collate
    return torch.stack(batch, 0, out=out)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 4 and 3 in dimension 1 at /pytorch/aten/src/TH/generic/THTensorMath.c:3586

Here is the printed result.