4uiiurz1 / pytorch-deform-conv-v2

PyTorch implementation of Deformable ConvNets v2 (Modulated Deformable Convolution)
MIT License
739 stars 141 forks source link

No module named torch.meshgrid #8

Open wgqbit95 opened 5 years ago

wgqbit95 commented 5 years ago

I have used all the torch versions 0.4.0 0.4.1 1.0.0, but there is always an error 'no module named torch.meshgrid' , could you please help me solve the problem

dontLoveBugs commented 5 years ago

Hi, firstly, you need to check if you import the torch module correctly or not. Then, "torch.meshgrid" is different in between 0.4.1 and 1.0.0.

     In torch 0.4.1 grid_x, grid_y = torch.meshgrid([x, y])
     In torch 1.0   grid_x, grid_y = torch.meshgrid(x, y)

You can refer to my fork

liwenjielongren commented 4 years ago

are you solve this problem? @wgqbit95 ,my torch versions are 0.4.0 and 0.4.1