Coder Social home page Coder Social logo

striver6 / pytorch_amoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akimoto-cris/pytorch_amoc

0.0 1.0 0.0 130.79 MB

AMOC, "Video-based Person Re-identification with Accumulative Motion Context".

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

License: Apache License 2.0

Python 93.75% MATLAB 5.95% Batchfile 0.31%

pytorch_amoc's Introduction

Usage

Environment:

  • anaconda
  • python3.6
  • pytorch
  • matlab 2019

Dataset

Two options:

Preprocess

  1. modified line 34 in the matlab code computeOpticalFlow.m to your dataset path, then run the matlab code. This produces ground truth for training the MotionNet.
  2. create anaconda environment by conda create -n torch python==3.6 pytorch==1.3.0 ignite -c pytorch.
  3. activate conda environment and install required libraries: pip install -r requirements.txt.

Training

  1. Activate anaconda environment. conda activate torch.

  2. (Optional) open a visdom service: python -m visdom.server.

  3. Open another terminal/cmd, train the MotionNet sub model:

    python train_motionnet.py -l 1e-4 --saveFileName motionnet -dataset 0.

  4. Load the above pretrained motionnet model and train the main model:

    python videoReid.py --train --usePredefinedSplit -l 1e-3 --saveFileName amoc -mp path/to/pretrained_motionnet_model.pth.

Testing

python track_demo.py --source path/to/video_file --tracker KCF/GOTURN/CSRT -p path/to/amoc_weights.pth

pytorch_amoc's People

Contributors

akimoto-cris 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.