Giter Club home page Giter Club logo

dual-cluster-contrastive's Introduction

Dual-Cluster-Contrastive

Installation

cd Dual-Cluster-Contrast
python setup.py develop

Prepare Datasets

cd examples && mkdir data

Download the person datasets Market-1501, and MSMT17 from (https://virutalbuy-public.oss-cn-hangzhou.aliyuncs.com/share/data.zip), which is provided by existing public code ClusterContrast(https://github.com/alibaba/cluster-contrast). Then unzip them under the directory like

examples/data/market1501/Market-1501-v15.09.15
exmpales/data/msmt17/MSMT17_V1

Training on supervised

CUDA_VISIBLE_DEVICES=0  python examples/main.py -b 128 -a resnet50 -d market1501 --momentum 0.1 --w 0.25 --num-instances 16 --logs-dir ./examples/market1501_supervised
CUDA_VISIBLE_DEVICES=0  python examples/main.py -b 128 -a resnet50 -d msmt17 --momentum 0.1 --w 0.5 --num-instances 16 --logs-dir ./examples/msmt17_supervised

Training on unsupervised

CUDA_VISIBLE_DEVICES=0,1  python examples/main_unsupervised.py -b 128 -a resnet50 -d market1501 --iters 400 --w 0.5 --momentum 0.1 --eps 0.4 --num-instances 16  --logs-dir ./example/market1501_unsupervised

In inspired by the Cluster-Contrast, the MSMT 17 is conducted with four gpus

CUDA_VISIBLE_DEVICES=0,1,2,3  python examples/main_unsupervised.py -b 256 -a resnet50 -d msmt17 --iters 400 --w 0.5 --momentum 0.1 --eps 0.6 --num-instances 16  --logs-dir ./example/msmt_unsupervised

The code is implemented based on the public code:https://github.com/alibaba/cluster-contrast

dual-cluster-contrastive's People

Contributors

coldrainyht avatar htyao89 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.