Git Product home page Git Product logo

d-mmd's Introduction

Installation

Make sure conda <https://www.anaconda.com/distribution/>_ is installed.

    git clone https://github.com/djidje/D-MMD

    # create environment
    cd D-MMD
    conda create --name d-mmd python=3.7
    conda activate d-mmd

    # install dependencies
    pip install -r requirements.txt

    # install torch and torchvision (select the proper cuda version to suit your machine)
    conda install pytorch torchvision cudatoolkit=9.0 -c pytorch

    # install torchreid (don't need to re-build it if you modify the source code)
    python setup.py develop

To reproduce experiments :

0. Preparation of data

The code is inspired from: https://github.com/KaiyangZhou/deep-person-reid

**Please arrange the data as proposed here: ** https://kaiyangzhou.github.io/deep-person-reid/datasets.html

1. Train source domain

To train a model based on source:

    python source_training.py

You can run it for Market1501, DukeMTMC and MSMT17 by changing the source in the python file by their correspunding names : market1501, dukemtmcreid and msmt17 :

	source = 'market1501'
	target = source

The model will be saved in this repo and will be used to perform the adaptation.

2. Apply Domain Adaptation using D-MMD

To perform the adaptation, do:

    D-MMD.py

You can set the transfer problem you want by changing:

	source = 'market1501'
	target = 'dukemtmcreid'

d-mmd's People

Contributors

djidje 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.