Giter Site home page Giter Site logo

potr's Introduction

POTR

Pose Transformer

Standard POTR

Deformable POTR

The implementation is based on this implementation of Deformable DETR.

Building

Because the original implementation structures the MSDeformAttention module as a separate Python package with its own Python, CUDA, and C++ scripts, one needs to build this before running the training.

First create a dedicated Conda environment with Python 3.7:

conda create -n deformable_potr python=3.7 pip
conda activate deformable_potr

Then install all the dependencies using:

pip install -r requirements.txt
conda install cudatoolkit-dev -c conda-forge

And finally, build the MSDeformAttention module (and all other custom CUDA operators) using:

cd ./deformable_potr/models/ops
sh ./make.sh

You can then test the CUDA operators by running python test.py, where all tests should pass.

To get notebooks install juyptext

pip install jupytext

How to get Jupyter notebooks

To facilitate nice Git workflow we use Jupytext. See their manual for installation instruction and when creating your own notebooks.

To get Jupyter Notebook .ipynb out of a .py file using Jupyter Lab:

  1. Have Jupytext installed.
  2. Run Jupyter Lab.
  3. In navigation sidebar right-click on a .py file, select Open With -> Notebook.
  4. Save the just opened notebook. New file with .ipynb extension should appear.
  5. Enjoy the new notebook, don't forget to close .py file opened as notebook ;-)

potr's People

Contributors

jkanis-ntis avatar matyasbohacek avatar mhruz avatar yvang 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.