{"action":"closed","issue":{"url":"https://api.github.com/repos/hangzhaomit/semantic-segmentation-pytorch/issues/3","repository_url":"https://api.github.com/repos/hangzhaomit/semantic-segmentation-pytorch","labels_url":"https://api.github.com/repos/hangzhaomit/semantic-segmentation-pytorch/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/hangzhaomit/semantic-segmentation-pytorch/issues/3/comments","events_url":"https://api.github.com/repos/hangzhaomit/semantic-segmentation-pytorch/issues/3/events","html_url":"https://github.com/hangzhaomit/semantic-segmentation-pytorch/issues/3","id":265737070,"number":3,"title":"RuntimeError: argument 1 (padding) must be tuple of int but got tuple of (float, float)","user":{"login":"Tramac","id":22740819,"avatar_url":"https://avatars0.githubusercontent.com/u/22740819?v=4","gravatar_id":"","url":"https://api.github.com/users/Tramac","html_url":"https://github.com/Tramac","followers_url":"https://api.github.com/users/Tramac/followers","following_url":"https://api.github.com/users/Tramac/following{/other_user}","gists_url":"https://api.github.com/users/Tramac/gists{/gist_id}","starred_url":"https://api.github.com/users/Tramac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tramac/subscriptions","organizations_url":"https://api.github.com/users/Tramac/orgs","repos_url":"https://api.github.com/users/Tramac/repos","events_url":"https://api.github.com/users/Tramac/events{/privacy}","received_events_url":"https://api.github.com/users/Tramac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-16T11:31:45Z","updated_at":"2017-10-16T13:53:21Z","closed_at":"2017-10-16T13:53:21Z","author_association":"NONE","body":"when I run the train.py with python 3.6, this error appeared, why?\r\n\r\n/home/xxx/.pyenv/versions/anaconda3-4.4.0/bin/python /home/xxx/semantic-segmentation-pytorch/train.py\r\nsamples: 20210\r\nsamples: 64\r\n1 Epoch = 1263 iters\r\nEvaluating at 0 epochs...\r\nTraceback (most recent call last):\r\n  File \"/home/xxx/semantic-segmentation-pytorch/train.py\", line 400, in <module>\r\n    main(args)\r\n  File \"/home/xxx/semantic-segmentation-pytorch/train.py\", line 276, in main\r\n    evaluate(nets, loader_val, history, 0, args)\r\n  File \"/home/xxx/semantic-segmentation-pytorch/train.py\", line 133, in evaluate\r\n    pred, err = forward_with_loss(nets, batch_data, args, is_train=False)\r\n  File \"/home/xxx/semantic-segmentation-pytorch/train.py\", line 35, in forward_with_loss\r\n    pred = net_decoder(net_encoder(input_img))\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 224, in ____call____\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/xxx/semantic-segmentation-pytorch/models.py\", line 175, in forward\r\n    x = self.features(x)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 224, in ____call____\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/container.py\", line 67, in forward\r\n    input = module(input)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 224, in ____call____\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/container.py\", line 67, in forward\r\n    input = module(input)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 224, in ____call____\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torchvision-0.1.9-py3.6.egg/torchvision/models/resnet.py\", line 41, in forward\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 224, in ____cal__l__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/modules/conv.py\", line 254, in forward\r\n    self.padding, self.dilation, self.groups)\r\n  File \"/home/xxx/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/torch/nn/functional.py\", line 51, in conv2d\r\n    _pair(0), groups, torch.backends.cudnn.benchmark, torch.backends.cudnn.enabled)\r\nRuntimeError: argument 1 (padding) must be tuple of int but got tuple of (float, float)"}}
{"actor":{"display_login":"Tramac"}}