Giter VIP home page Giter VIP logo

egoflow's Introduction

EgoFlow: detect if a person is looking at me with RGB and corresponding optical-flow sequences.

Introduction

This is a method proposed for 2022 Ego4D Looking-at-Me Challenge, utilizing Ego4D dataset and an optical flow dataset, this dataset is created with the RGB images in Ego4D by a neural network called FlowFormer.

Installation

conda create -n egoflow python=3.8 
conda activate egoflow
conda install pytorch=1.7.1 torchvision=0.8.2 cudatoolkit=11.0
pip install -r requirements.txt

Model

  1. FlowFormer

Create a folder

mkdir checkpoints

and put sintel.pth in it.

  1. A pre-trained EgoFlow model for testing

Dataset

  1. Download Ego4D dataset following the official guidance.

  2. Run all "*_odd.py" and "*_even.py" files to generate the optical flows. Please check the roots of datasets in these python files.

Train

python run.py --model GazeLSTM --exp_path output_train --num_workers 16 --batch_size 64 --gamma 0.5

Test

python run.py --eval --checkpoint checkpoint_EgoFlow.pth --model GazeLSTM --exp_path output_test --num_workers 16 --batch_size 128

egoflow's People

Contributors

huhaowen0130 avatar

Watchers

 avatar

Forkers

hars-singh

egoflow's Issues

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.