GithubHelp home page GithubHelp logo

hope's Introduction

HeterOgeneous graPh alignmEnt


In this repo, we want to align graph pair from different datasource through a graph convolutional network.

Dependencies package

  • pytorch 1.1.0
  • pytorch_geometric
  • opencv-python (optional)
  • numpy
  • visdom
  • matplotlib

More info about the package pytorch_geometric, please refer to pytorch_geometric

Data preparation

We use common dataset used in the field of the trajectory prediction here: ETH and UCY. These two datasets containes 5 crowd sets with total of 1536 pedestrians. The datasets are recorded at 25 fps, annotated every 0.4 seconds and contain 4 different scenes.

To order to ensure the diversity of data, we sample the annotation data at intervals of 50 frames, that is , to sample at a frequency of 2 seconds each time. More details refer to pre_process.py

To simulate the graphs from heterogeneous data, we randomly decrement and pertub the vertices of the graph as the result of image detection, and add noisy vertices as the result from single line radar data. More details refer to graph_simulation.py

Architecture

We use a siamese structure to extract discriminative features where each branch is a resnet block with edgegcn layer. The architecture of each branch is demonstrated as follow:

EG

Train

  • add your workpalce to the pythonpath
export PYTHONPATH=<your/path/to/Hope>:$PYTHONPATH
  • open you visdom server to observe the results
python -m visdom.server
  • train the network
python trainval.py --gpu '0' --bs 64
  • if you want to observe both train and validation results
python trainval.py --trainval --gpu '0' --bs 64

Test

  • [] TODO

Visualization

More details about the dataset you can find in utils/visualize.py.

The train and valid process you can observe through visdom server, refer to Train.

log

hope's People

Contributors

zongweizhou1 avatar

Stargazers

Yuquan Li avatar

Watchers

James Cloos 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.