Giter VIP home page Giter VIP logo

nodis's Introduction

NODIS: Neural Ordinary Differential Scene Understanding

Here is the pytorch code for our paper NODIS: Neural Ordinary Differential Scene Understanding (ECCV 2020). If the paper is helpful for you, we request that you cite our work.

GitHub Logo

Our code is supported by neural-motifs and torchdiffeq. Great thanks to Rowan Zellers and Ricky Chen!

Setup

  1. Install python and pytorch if you haven't. Our code is based on python 3.6 and pytorch 0.4.1.

  2. Compile: run make in the main directory

  3. Download Neural ODE module here

  4. For a fair comparison we use the pretrained object detector checkpoint provided by neural-motifs. You can download it here directly and save it under checkpoints/vgdet/

  5. The final directories for data and detection models should look like:

|-- checkpoints
|   |-- vgdet
|-- data
|   |-- stanford_filtered
|-- dataloaders
|-- lib
|-- torchdiffeq
|-- models

Training

You can train the NODIS model with train_rel.py. We trained the model on a GTX 1080Ti.

  • For PredCLS:
python train_rels.py -m predcls -order random -b 6 -p 100 -lr 1e-4 -ngpu 1 -ckpt checkpoints/vgdet/vg-24.tar -save_dir checkpoints/ -nepoch 20
  • For SGCLS:
python train_rels.py -m sgcls -order random -b 6 -p 100 -lr 1e-4 -ngpu 1 -ckpt checkpoints/vgdet/vg-24.tar -save_dir checkpoints/ -nepoch 20
  • For SGGEN:
python train_rels.py -m sgdet -order random -b 6 -p 100 -lr 1e-4 -ngpu 1 -ckpt $CHECKPOINT -save_dir checkpoints/ -nepoch 20

Evaluation

You can evaluate the model trained by yourself.

  • For PredCLS:
python eval_rels.py -m predcls -order random -b 6 -p 100 -lr 1e-3 -ngpu 1 -test -ckpt $CHECKPOINT -nepoch 50
  • For SGCLS:
python eval_rels.py -m sgcls -order random -b 6 -p 100 -lr 1e-3 -ngpu 1 -test -ckpt $CHECKPOINT -nepoch 50
  • For SGGEN:
python eval_rels.py -m sgdet -order random -b 6 -p 100 -lr 1e-3 -ngpu 1 -test -ckpt $CHECKPOINT -nepoch 50

or you can download the pretrained NODIS PREDCLS/SGCLS/SGGEN here.

Help

This is a draft version, if you find any problem, please contact with us.

nodis's People

Contributors

yrcong avatar

Watchers

James Cloos 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.