GithubHelp home page GithubHelp logo

guanw-pku / oed Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 91 KB

Official implementation of paper "OED: Towards One-stage End-to-End Dynamic Scene Graph Generation".

License: Apache License 2.0

Python 100.00%

oed's Introduction

OED

Official implementation of paper "OED: Towards One-stage End-to-End Dynamic Scene Graph Generation".

Dataset

Data preperation

We use the dataset Action Genome to train/evaluate our method. Please process the downloaded dataset with the Toolkit and put the processed annotation files with COCO style into annotations folder. The directories of the dataset should look like:

|-- action-genome
    |-- annotations   # gt annotations
        |-- ag_train_coco_style.json
        |-- ag_test_coco_style.json
        |-- ...
    |-- frames        # sampled frames
    |-- videos        # original videos

Evaluation

Please download the checkpoints used in the paper and put it into exps folder. You can use the scripts below to evaluate the performance of OED.

In order to reduce the training cost, we firstly train the spatial module and then train the temporal module after loading trained spatial paramters.

  • For SGDET task
python scripts/eval_spatial_sgdet.py   # spatial module
python scripts/eval_temporal_sgdet.py  # temporal module
  • For PredCLS task
python scripts/eval_spatial_predcls.py   # spatial module
python scripts/eval_temporal_predcls.py  # temporal module
Task Module W/R@10 W/R@20 W/R@50 N/R@10 N/R@20 N/R@50 weight
SGDET spatial 31.5 37.7 43.7 33.4 41.6 49.0 link
SGDET temporal 33.5 40.9 48.9 35.3 44.0 51.8 link
PredCLS spatial 72.9 76.0 76.1 83.3 95.3 99.2 link
PredCLS temporal 73.0 76.1 76.1 83.3 95.3 99.2 link

Train

You can follow the scripts below to train OED in both SGDET and PredCLS tasks.

Notably, manually tuning LR drop may be needed to obtain the best performance.

  • For SGDET task
python scripts/train_spatial_sgdet.py   # spatial module
python scripts/trian_temporal_sgdet.py  # temporal module
  • For PredCLS task
python scripts/train_spatial_predcls.py   # spatial module
python scripts/train_temporal_predcls.py  # temporal module

oed's People

Contributors

guanw-pku avatar

Stargazers

 avatar Wenxiang Chen avatar persistence avatar KimSeHyung avatar yahooo avatar

Watchers

 avatar  avatar

oed's Issues

about GPUs

Hello, may I ask what is the specific GPU configuration for this code? I see in the sh file that it needs 8 cards .

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.