Giter Club home page Giter Club logo

cross-view-asymmetric-cluster-contrastive's Introduction

Cross-view Asymmetric 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

cross-view-asymmetric-cluster-contrastive's People

Contributors

coldrainyht avatar htyao89 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cross-view-asymmetric-cluster-contrastive's Issues

paper

Can you tell me which journal this article was submitted to? What is the status of the article now?

scalar & 温度超参数

1、class DCCLoss(nn.Module): def __init__(self, num_features, num_classes, scalar=20.0, momentum=0.0, weight=None, size_average=True,init_feat=[]):

scalar=20.0 这个参数作用是什么?

2、这两个损失计算的时候温度超参数去哪了?
loss_ccc = F.cross_entropy(inputs_ccc, targets, size_average=self.size_average)
loss_icc = F.cross_entropy(inputs_icc, targets, size_average=self.size_average)

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.