Skip to content
/ FDHP Public

A Hybrid Recurrent Framework Based on Embedded Driving Features for Egocentric Activity Forecasting

Notifications You must be signed in to change notification settings

MCLXD/FDHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

FDHP The source code will be released after the paper is officially accepted!

A Hybrid Recurrent Framework Based on Embedded Driving Features for Egocentric Activity Forecasting

Introduction

This is a Pytorch implementation of the model described in our paper: Xiangdong Long, He Zhang, Tianyu Liang Shuqin Wang and Yong Chen. FDHP:A Hybrid Recurrent Framework Based on Embedded Driving Features for Egocentric Activity Forecasting.

Dependencies

PyTorch ≥ 1.10.2
CUDA 9.0.176
CuDNN 7.4.2
Python 3.6.13

Data

EPIC-Kitchens dataset

For the raw data of the EPIC-Kitchens dataset, please refer to https://github.com/epic-kitchens/download-scripts to download.

For the three modality features (rgb, flow, obj), please refer to https://github.com/fpv-iplab/rulstm to download. After downloading, put them in the folder './data'.

EGTEA Gaze+ dataset

For the raw data of the EGTEA Gaze+ dataset, please refer to http://cbs.ic.gatech.edu/fpv/ to download.

For the extracted features, please refer to https://github.com/fpv-iplab/rulstm to download. After downloading, put them in the folder './data'.

50 Salads dataset

For the raw data of the 50 Salads dataset, please refer to http://cvip.computing.dundee.ac.uk/datasets/foodpreparation/50salads/ to download.

For the extracted features, please refer to https://github.com/colincsl/TemporalConvolutionalNetworks to download. After downloading, put them in the folder './data'.

Breakfast dataset

For the raw data of the Breakfast dataset, please refer to https://serre-lab.clps.brown.edu/resource/breakfast-actions-dataset/ to download.

For the extraced I3D features, please download from Baidu passward: 'wub3' or Google Drive. After downloading, put them in the folder './data'.

Training

EPIC-Kitchens

  • For rgb feature: python main.py --gpu_id 0 --batch_size 128 --mode train --modality rgb --hidden 1024 --feat_in 1024 --lr 0.05 --wd 1e-5 --reinforce_verb_weight 0 --reinforce_noun_weight 0 --revision_sd_weight 0 --revision_ad_weight 3 --revision_etp_weight 1.5 --revision_threshold 0.003 --epoch 300
  • Silimar commonds can be used for flow or obj features.
  • For three modality features: python main.py --gpu_id 0 --batch_size 128 --mode train --modality fusion --lr 0.05 --wd 1e-5 --reinforce_verb_weight 0 --reinforce_noun_weight 0 --revision_sd_weight 0 --revision_ad_weight 0 --revision_etp_weight 0 --epoch 200

Validation

Validation for Epic-Kitchen dataset

Please download the pre-trained model weigths from Quark passward: 'knzY', and put them in the folder './results/EPIC/base_srl/pre_trained/'.

  • For rgb feature: python main.py --gpu_ids 0 --batch_size 128 --mode validate --modality rgb --hidden 1024 --feat_in 1024 --best_model_name R4.06.18 --resume_timestamp pre_trained
  • For three modality features, python main.py --gpu_ids 0 --batch_size 128 --mode validate --modality fusion --best_model_name model_name

Citation

None

About

A Hybrid Recurrent Framework Based on Embedded Driving Features for Egocentric Activity Forecasting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published