VDIGPKU/M2Det

AttributeError: module 'torch.nn.functional' has no attribute 'interpolate'?? 有人遇到这个问题吗??

wwfnwg opened this issue · 2 comments

AttributeError: module 'torch.nn.functional' has no attribute 'interpolate'?? 有人遇到这个问题吗??

Traceback (most recent call last):
File "demo.py", line 109, in
out = net(img)
File "/data8T/lsq/anaconda3/envs/pytorch/lib/python3.5/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/data8T/lsq/detection/M2Det/m2det.py", line 112, in forward
(self.reduce(base_feats[0]), F.interpolate(self.up_reduce(base_feats[1]),scale_factor=2,mode='nearest')),1
AttributeError: module 'torch.nn.functional' has no attribute 'interpolate'
我也是这个问题,你有解决吗?
pytorch 版本从0.4.0 改成0.4.1 就可以了

版本问题吧,我的pytorch==1.0.1.post2没有问题