https://github.com/dontLoveBugs/Deformable_ConvNet_pytorch/blob/aea497d1a5a6090940c8f24a47b97ea09073ae98/network/deform_conv/deform_conv.py#L50 This code just change the order from [x1, y1, x2, y2...] to [x1, x2,...y1,y2...], not from [x1, x2,...y1,y2...] to [x1, y1, x2, y2...].