Skip to content

VIPL-TAL-GAZE/GAZE2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for #1 submission in ETH-XGaze Competition

Challenge

Official implementation of ETH-XGaze Competition #1 Solution.

Requirements

  • Python == 3.8

    Please refer to requirements.txt.

  • timm

    Pytorch image models in timm are used for our code.

  • apex

    A NVIDIA-maintained utilities to streamline mixed precision and distributed training in Pytorch. Apex is used for training HRNet models in our checkpoints. You can also train our HRNet models without apex by decreasing batch size.

    To install apex:

    git clone https://www.github.com/nvidia/apex

    cd apex

    python setup.py install

File Structure

Please download our pretrained models in GoogleDrive or baiduyun,the password is eo7p.

Pretrained models in gaze2021/checkpoints/* should should be placed into checkpoints folder, and gaze2021/datasets/* should be placed into datasets folder.

The training data xgaze_224 should be put in datasets folder. Or change data_dir argument in configs for the data path.

The final structure would look like:

├── datasets			
│   ├── xgaze_224
│   │   ├── train
│   │   │   ├── subject0000.h5
│   │   │   ├── ...
│   │   ├── test
│   │   │   ├── ...
│   ├── xgaze_landmarks
│   ├── train_eval_test_split.json
├── checkpoints
│   │   ├── botnet
│   │   ├── ...
├── src1
├── src2
├── requirements.txt
├── README.md

Train & Verify

Code for training HRNet and BoTNet is in src1 folder. To train HRNet as an example:

cd src1
./scripts/train_hrnet.sh

Code for training ResNeSt and iTracker-MHSA is in src2 folder. To train ResNeSt as an example:

cd src2
./train.sh

To verify all results we submitted to the leaderboard, please implement verify.sh in src1 and src2.

Arxiv link

https://arxiv.org/pdf/2107.01980.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages