Skip to content

Tensorflow/keras implementation of End-to-End Object Detection with Transformers(DETR) research paper

License

Notifications You must be signed in to change notification settings

pranavjadhav001/detr_keras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detr_keras

Tensorflow/keras implementation of End-to-End Object Detection with Transformers(DETR) research paper
Paper link : https://arxiv.org/abs/2005.12872

Implementation

This is an unofficial Tensorflow implementation of DETR,End-to-end Object Detection with Transformers (Carion et al.).This Repo uses tensorflow's official MultiHeadAttention layer for attention. For Backbone, a similiar implementation of Pytorch's Resnet has been used rather than Tensorflow's pretrained resnet architecture due to discrepancies in Model architecture like use of dilation in Pytorch convolution layers, presence bias weights in Tensorflow etc. PositionEmbeddingSine layer has been adopted from official Pytorch's DETR library. Weights have been manually converted to fit the architecture. You can download the converted Pytorch weights in Tensorflow from here.

Run Detr with Pretrained Coco weights

python3 demo_coco.py --image_path path_to_image

Results

alt text

TO-DO

  • Model Architectures
  • Loss
  • Training
  • Inference
  • Pretrained Model
  • DataGenerator
  • Weight conversion scripts

Requirements

  • Pillow == 8.3.1
  • Tensorflow == 2.6.2
  • opencv-python == 4.4.0
  • keras == 2.6.0

References

About

Tensorflow/keras implementation of End-to-End Object Detection with Transformers(DETR) research paper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages