longcw / RoIAlign.pytorch

RoIAlign & crop_and_resize for PyTorch
555 stars 103 forks source link

兄弟,你这没按定义吧 #38

Open sunhao12121 opened 4 years ago

sunhao12121 commented 4 years ago

bro 测试用例的输出按照maskrcnn里align的定义

输出应该是 crops: tensor([[[[15.0000, 16.0000, 17.0000, 18.0000], |||||||||||||||||||||||||||||[22.0000, 23.0000, 24.0000, 25.0000], |||||||||||||||||||||||||||||[29.0000, 30.0000, 31.0000, 32.0000], |||||||||||||||||||||||||||||[36.0000, 37.0000, 38.0000, 39.0000]]],

|||||||||||||||||||||||||||[[[28.5000, 29.3750, 30.2500, 31.1250], |||||||||||||||||||||||||||||[34.6250, 35.5000, 36.3750, 37.2500], |||||||||||||||||||||||||||||[40.7500, 41.6250, 42.5000, 43.3750], |||||||||||||||||||||||||||||[42.9375, 43.8125, 44.6875, 45.5625]]]])

我用 https://github.com/jwyang/faster-rcnn.pytorch https://github.com/timy90022/One-Shot-Object-Detection

提供的库测出来都是我这个输出