GithubHelp home page GithubHelp logo

guanw-pku / csa Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 52.04 MB

Python 64.50% Makefile 0.01% Jupyter Notebook 27.83% Cython 0.50% MATLAB 0.03% C 1.33% C++ 0.82% Cuda 4.87% Shell 0.01% Roff 0.04% Dockerfile 0.07%

csa's Introduction

CSA

Dataset

Data preperation

We use PLA as baseline and we aims to refine its detection results. Please obtain its detection results as described in their repo and put it into CSA/data/action-genome folder.

Besides, you can download our preprocessed detection results, pretrained checkpoint and other necessary files in this link, and then put them in corresponding location.

The directories of CSA should look like:

|-- data
    |-- action-genome
        |-- frames        # sampled frames
        |-- videos        # original videos
        |-- AG_detection_results # detection results as PLA described
        |-- annotations   # downloaded gt annotations
        |-- AG_detection_results_refine # downloaded preprocessed refine detection results
|-- refine
    |-- output # downloaded checkpoint
    |-- ...
|-- PLA
    |-- model # downloaded checkpoint
    |-- ...

Evaluation

  • For refine model
cd ~/CSA/refine
python scripts/evaluate.py # evaluate the performance of object detection
AP@1 AP@10 AR@1 AR@10 weight
13.8 14.2 35.2 40.6 link
  • For preprocess (optional)

You can obtain the detection results with trained model. The split to be inferred should be given in preprocess.py, which is in ['test', 'train', 'total']. These three splits should all be processed.

cd ~/CSA/refine
python scripts/preprocess.py
  • For PLA model
cd ~/CSA/PLA
python test.py --cfg configs/oneframe.yml # for image SGG model
python test.py --cfg configs/final.yml # for video SGG model
Model W/R@10 W/R@20 W/R@50 N/R@10 N/R@20 N/R@50 weight
Image 16.52 21.42 26.68 17.57 23.35 32.27 link
Video 16.83 21.72 26.96 17.95 23.98 32.98 link

Train

  • For refine model
cd ~/CSA/refine
python scripts/train.py # evaluate object detection results
  • For PLA model
cd ~/CSA/PLA
python train.py --cfg configs/oneframe.yml # for image SGG model
python train.py --cfg configs/final.yml # for video SGG model

csa's People

Contributors

guanw-pku avatar

Watchers

 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.