Giter Site home page Giter Site logo

blime4 / c-hoi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tfzhou/c-hoi

0.0 0.0 0.0 29.08 MB

Cascaded Human-Object Interaction Recognition (CVPR2020)

Home Page: https://arxiv.org/abs/2003.04262

Shell 0.09% C++ 2.65% Python 91.68% Cuda 5.21% Cython 0.37%

c-hoi's Introduction

Cascaded Human-Object Interaction Recognition

This repository contains the PyTorch implementation for CVPR 2020 Paper "Cascaded Human-Object Interaction Recognition" by Tianfei Zhou, Wenguan Wang, Siyuan Qi, Haibin Ling, Jianbing Shen.

Our proposed method reached the 1st place in ICCV-2019 Person in Context Challenge (PIC19 Challenge), on both Human-Object Interaction in the Wild (HOIW) and Person in Context (PIC) tracks.


Update #1: A new branch (pytorch-1.5.0) is created, with some bugs fixed. The branch will be easier to use. p.s. you will still see a warning on missing keys (e.g., sa.g.conv.bias), and I did not solve it yet but will try to figure it out later.

Update #2: The score of our model (i.e., 66.04%) on HOIW reported in our paper is obtained by an ensemble of multiple models. Here I only provided the best single model that I have, so it is reasonable that the model does not deliver a similar score. I am running the evaluation on HOIW test set, and expect to report my performance for reference this week (hopefully 02.09.2022).

Update #3: With input size (1200, 700), the mAP of the provided weights on HOIW test is around 57%.

Prerequisites

This implementation is based on mmdetection. Please follow INSTALL.md for installation.

The code will work for pytorch=1.5.0, mmdet=1.0rc0+65c1842, and mmcv=0.4.3.

If you encounter problems on *.so files (e.g., undefined symbol in *.so), please try to delete all existing *.so files and rebuild mmdet.

Prepare Dataset

Please find the dataset from the PIC challenge website: http://picdataset.com:8000/challenge/task/download/

For the test-set annotation and evaluation, please refer to https://drive.google.com/drive/folders/15xrIt-biSmE9hEJ2W6lWlUmdDmhatjKt and https://github.com/YueLiao/PIC_HOIW.

I'd like to thank @zgplvyou for sharing me the links.

Please download converted json files from google drive, and put them in the top-most directory.

Download pre-trained weights

Download from Google Drive.

Results on PIC and HOIW datasets are also provided.

Testing

  1. Run testing on the validation set of PIC v2.0

python tools/test_pic.py configs/pic_v2.0/htc_rel_dconv_c3-c5_mstrain_400_1400_x101_64x4d_fpn_20e_train_rel_dcn_semantichead.py pic_latest.pth --json_out det_result.json

  1. Run testing on the validation set of HOIW

python tools/test_hoiw.py configs/hoiw/cascade_rcnn_x101_64x4d_fpn_1x_4gpu_rel.py hoiw_latest.pth --json_out det_result.json --hoiw_out hoiw_result.json

Citation

@article{zhou2021cascaded,
  title={Cascaded parsing of human-object interaction recognition},
  author={Zhou, Tianfei and Qi, Siyuan and Wang, Wenguan and Shen, Jianbing and Zhu, Song-Chun},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  volume={44},
  number={6},
  pages={2827--2840},
  year={2021},
  publisher={IEEE}
}

@inproceedings{zhou2020cascaded,
  title={Cascaded human-object interaction recognition},
  author={Zhou, Tianfei and Wang, Wenguan and Qi, Siyuan and Ling, Haibin and Shen, Jianbing},
  booktitle=CVPR,
  pages={4263--4272},
  year={2020}
}

c-hoi's People

Contributors

tfzhou 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.