VDIGPKU / M2Det

M2Det: A Single-Shot Object Detector based on Multi-Level Feature Pyramid Network
MIT License
1.45k stars 318 forks source link

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

Open wwfnwg opened 5 years ago

ShiqiLi047 commented 5 years ago

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 就可以了

imyhxy commented 5 years ago

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