Giter VIP home page Giter VIP logo

dccs's Introduction

DCCS

Official PyTorch implementation for ECCV'20 paper: Deep Image Clustering with Category-Style Representation

Coming soon

  • A new clustering method which achieves 85.8% clustering accuracy on CIFAR-10 (with 0.8% standard deviations).

Package dependencies

  • python >= 3.6
  • pytorch == 1.2.0
  • torchvision == 0.4.0
  • scikit-learn == 0.21.3
  • tensorboardX
  • matplotlib
  • numpy
  • scipy

Create the environment with Anaconda

$ conda create -n dccs python=3.6
$ source activate dccs
$ conda install pytorch=1.2.0 torchvision=0.4.0 cudatoolkit=10.0 -c pytorch
$ conda install scikit-learn=0.21.3
$ pip install tensorboardX
$ conda install matplotlib

Prepare datasets

For MNIST, Fashion-MNIST, CIFAR-10 and STL-10, you can download the datasets using torchvision.

For example, you can download CIFAR-10 with

torchvision.datasets.CIFAR10('path/to/dataset', download=True)

For ImageNet-10, you can download ImageNet, select the images of 10 classes listed in './data/imagenet10_classes.txt', and resize the images to 96x96 pixels.

Command to run DCCS

You can run DCCS on MNIST with

$ CUDA_VISIBLE_DEVICES=0 python train.py --dataset-type=MNIST --dataset-path=path/to/dataset --beta-aug=2 

For CIFAR-10, you can use

$ CUDA_VISIBLE_DEVICES=0 python train.py --dataset-type=CIFAR10 --dataset-path=path/to/dataset --beta-aug=4 

Citation

If you are interested in our paper, please cite:

@inproceedings{zhao2020deep,
  title={Deep Image Clustering with Category-Style Representation},
  author={Zhao, Junjie and Lu, Donghuan and Ma, Kai and Zhang, Yu and Zheng, Yefeng},
  booktitle={European Conference on Computer Vision (ECCV)},
  year={2020}
}

dccs's People

Contributors

skamij avatar

Stargazers

GongKaiming avatar CJSorange avatar  avatar mangoyuan avatar Jubilee.Yang avatar Ramsey avatar  avatar  avatar Janik Schnellbach avatar Ashima Garg avatar  avatar Jizong's Fox avatar hmjw avatar  avatar  avatar  avatar Lei avatar

Watchers

 avatar

dccs's Issues

Question on training the critics

Hello,

Thanks for the great work and the comprehensive released code.

I have a question regarding to the training of the critic in the code.

DCCS/train.py

Line 216 in b40d95d

with torch.no_grad():

In the prior matching step, you disable all gradients from the encoder and just train the critic. There is no gradient flow backpropagated to the encoder and how do you realize the prior distribution matching?

Thanks.

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.