GithubHelp home page GithubHelp logo

karlszp / cghash Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 41.43 MB

A pytorch implementation of our paper: "Unsupervised Hashing with Contrastive Learning by Exploiting Similarity Knowledge and Hidden Structure of Data" [ACM MM 2023]

Python 99.55% Shell 0.45%

cghash's Introduction

CGHash: Conditional Generative Model enhanced Contrastive Hashing

A pytorch implementation of our paper:

Unsupervised Hashing with Contrastive Learning by Exploiting Similarity Knowledge and Hidden Structure of Data

Accepted in Proceedings of the 31st ACM International Conference on Multimedia [ACM MM 2023].

Training Schema

Settings

  1. Place downloaded datasets at datasets/. (Cifar-10 will be downloaded automatically.)
  2. [Optional] Refer to utils/data_path.py to set dataset path.
  3. Place pre-trained models at models/pretrained_backbones/. (A 300-epoch SimCLR pre-trained models for Cifar-10 is available here.)
  4. Configure training details in configs/[dataset]/[stage]_[dataset]_[code_length].yml.

Training Example for 64-bit Cifar-10

  1. Place Cifar-10 dataset at datasets/ manually or download automatically later.

  2. Configure training details in configs/cifar-10/mine_cifar10.yml, configs/cifar-10/cghash_cifar10_64.yml, configs/cifar-10/selflabel_cifar10_64.yml.

  3. Run shell training script.

    chmod +x ./run.sh
    ./run.sh [CODE_LENGTH] [GPU_ID]
    # e.g. ./run.sh 64 0,1

Retrieval Example

cghash's People

Contributors

karlszp avatar

Stargazers

 avatar  avatar

Watchers

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