Giter Club home page Giter Club logo

tbh's Introduction

Auto-Encoding Twin-Bottleneck Hashing

fig

This is the main repository for our CVPR2020 work:
Auto-Encoding Twin-Bottleneck Hashing

Requirements

python=3.6
tensorflow>=2.0 (tested with tf2.1)
scipy
sklearn

From this time on, I move to tensorflow2, though it is shitty and inhumane compared with tf1.
Note that this is a re-implemented repository of our original work. If you find any difficulty in reproducing the result, please refer to the old, uncleaned and ugly version.

Data

This work supports tf.data.TFRecordDataset as the data feed. I provide the following data as training examples:

If one needs to run experiments on other datasets, please refer to util/data/make_data.py to build TFRecords.

Please organize the data folder as follows:

data
  |-cifar10 (or other dataset names)
    |-train.tfrecords
      test.tfrecords

Train

Simply run

python ./run_tbh.py

to train the model.

The resulting checkpoints will be placed in ./result/set_name/model/date_of_today with tensorboard events in /result/set_name/log/date_of_today.

The mAP results shown on tensorboard are just for illustration (the actual score would be slightly higher than the ones on tensorboard), since I do not update all dataset codes upon testing. Please kindly evaluate the results by saving the proceeded codes after training.

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.