Code Monkey home page Code Monkey logo

detr-tensorflow's Introduction

DEtection TRansformer Network (DETR) - Tensorflow

Implementation of the DETR (DEtection TRansformer) network (Carion, Nicolas, et al., 2020) in Tensorflow. The model was originally developed by Facebook Inc. and implemented in PyTorch. This repository solely aims to make the architecture accessible for Tensorflow users.

1. References

*Image is taken from (Carion, Nicolas, et al., 2020)

2. Packages

We use the following packages:

  • python 3.7.3
  • tensorflow 2.1.0
  • scipy 1.4.1
  • numpy 1.18.3
  • numba 0.49.0

3. Start Training

3.A. Install Modules

git clone https://github.com/auvisusAI/detr-tensorflow.git 			# Clone Repository
cd detr-tensorflow/								# Change to directory
pip3 install -e .								# Install repository and required packages

3.B. Data Preparation

storage_path/				# path/to/data_storage
	labels/				#.txt files where each line corresponds to one object in image
	images/				#.jpg files

3.C. Execute Training

3.C.I. Via Command Line

You can easily start the training procedure from detr_models/detr/ using:

python3 train.py --storage_path <PATH> --output_dir <PATH> <Additional Parameters>

Additional parameters such as epochs, batch_size etc. can be set. Please take a look at the help text for a complete overview using:

python3 train.py --help

If no additional parameters are used, the defaults as specified in detr_models/detr/config.py will be used.

3.C.II. Via Jupyter Notebook

If you want to execute training (e.g. on a pre-trained model) or just get a quick overview over the model architecture, you can also use the jupyter notebook DETR.ipynb provided in /notebooks.

4. To-DOs

  • [] Adjust data_feeder/loadlabel to handle Coco annotations
  • [] Include unittests to verify code
  • [] Take max_obj into config
  • [] Include mask head to model for segmentation
  • [] Parameterize to handle images with varying shape and paddings
  • [] Parameterize backbone config
  • [] Include inference script
  • [] Include inference notebook

5. Help - We need somebody

As you can see, there are still many open to-dos. We are happy for all contributions to improve this Tensorflow implementation.

detr-tensorflow's People

Contributors

auvisusai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.