GithubHelp home page GithubHelp logo

phymucs / cpac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sharonfogel/cpac

0.0 3.0 0.0 14.74 MB

Pytorch implementation of our article "Clustering-driven Deep Embedding with Pairwise Constraints"

Python 100.00%

cpac's Introduction

Clustering-driven Deep Embedding with Pairwise Constraints (CPAC)

Overview

This repository contains a pytorch implementation of our paper "Clustering-driven Deep Embedding with Pairwise Constraints". Our algorithm performs non-parametric clustering using a siamese neural network.

Citation

If you find our code is useful in your researches, please consider citing:

@article{fogel2018clustering,
  title={Clustering-driven Deep Embedding with Pairwise Constraints},
  author={Fogel, Sharon and Averbuch-Elor, Hadar and Goldberger, Jacov and Cohen-Or, Daniel},
  journal={arXiv preprint arXiv:1803.08457},
  year={2018}
}

Dependencies

  1. CUDA

  2. cudnn

  3. Python 2.7

  4. Pytorch

  5. Additional Python libraries: numpy, sklearn, matplotlib,

Train model

In order to train the net on a specific dataset (for example USPS) you can run:

$ python main_CPAC.py --input USPS

The name of the dataset should be the beginning of the hdf5 file ending with "4torch.h5" (in this case the name of the file will be "USPS4torch.h5". Datasets should be saved in the directory named datasets. We uploaded the datasets USPS, CMUPIE and FRGC. It is possible to train on your own dataset by creating a new hdf5 file with the dataset samples and labels.

You can also change other hyper parameters for model training, such as learning rate, autoencoder dimensions, etc.

cpac's People

Contributors

sharonfogel avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.