(Full PyTorch Code Reference: https://github.com/hanouticelina/deformable-DETR)

Background

DETR

https://frost-crate-a82.notion.site/End-to-End-Object-Detection-with-Transformers-513a58b0b55f4b5bafdb596f862f5601?pvs=4

Deformable Convolution

(Normal convolution calculation - perform based on fixed-sized kernel)

Deformable convolution - predict sampling point by put the feature to specific layer → perform convolution calculation based on that point

visualize deformable convolution and sampled point

visualize deformable convolution and sampled point

Architecture

Untitled

Deformable Attention