koyeongmin / PINet

MIT License
207 stars 56 forks source link

the test.py failed to run #1

Closed lfxx closed 4 years ago

lfxx commented 4 years ago

got the error below: Traceback (most recent call last): File "C:/Users/gaofeng/Desktop/PINet-master/working.py", line 396, in Testing() File "C:/Users/gaofeng/Desktop/PINet-master/working.py", line 34, in Testing lane_agent = agent.Agent() File "C:\Users\gaofeng\Desktop\PINet-master\agent.py", line 35, in init self.lane_detection_network = lane_detection_network() File "C:\Users\gaofeng\Desktop\PINet-master\hourglass_network.py", line 19, in init self.resizing = resize_layer(3, 128) File "C:\Users\gaofeng\Desktop\PINet-master\util_hourglass.py", line 175, in init self.conv = Conv2D_BatchNorm_Relu(in_channels, out_channels/2, 7, 3, 2) File "C:\Users\gaofeng\Desktop\PINet-master\util_hourglass.py", line 35, in init padding=padding, stride=stride, bias=bias), File "C:\Users\gaofeng\Anaconda3\envs\lane_detection\lib\site-packages\torch\nn\modules\conv.py", line 315, in init False, _pair(0), groups, bias) File "C:\Users\gaofeng\Anaconda3\envs\lane_detection\lib\site-packages\torch\nn\modules\conv.py", line 38, in init out_channels, in_channels // groups, *kernel_size)) TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of:

any suggestions?@koyeongmin

koyeongmin commented 4 years ago

In my opinion, python version is the reason. We tested the code on python 2.7. Why don't you refer following link if you are using python3, how about? https://github.com/tengshaofeng/ResidualAttentionNetwork-pytorch/issues/3 @lfxx

lfxx commented 4 years ago

solve it,thanks!