Giter Club home page Giter Club logo

tensorflow_proxy-nca's Introduction

About

Yet another TensorFlow with Keras reimplementation of the paper No Fuss Distance Metric Learning using Proxies as introduced by Google Research.

Take advantage of the a little recent network VGG19 with somewhat naive optimizer SGD. These two parts could be easily changed to any other compatible components.

Provided two training processes. One is direct and the other applies some data augmentation tricks. Both produce applicable results.

The dataset applied is Cars 196. But it could be easily changed to any other datasets under Keras framework.

The anaconda environment to run is provided as the environment.yaml file.

A custom version of Keras is included which is necessary for data augmentation.

Train

Do the following:

git clone https://github.com/terU3760/tensorflow_proxy-nca.git

In the cloned project root directory:

mkdir data
cd data

Download cars_data.tar.xz (slightly modified version of Stanford University CARS196 dataset) into this directory, and then type

tar -xf cars_data.tar.xz

Edit file config_cars_tensorflow.json, let "root" point to your "cars_data" directory.

To train directly, in the root directory if the cloned project, type:

python train.py

To train with data augmentation, type:

python train_data_augmentation.py

Since it is run under Keras framework, no need to mind the validation loss, a custom evaluation process is adopted.

Results

Since using a different network VGG19 instead of BN-Inception, the result is not listed here. But the base network could be very easily converted back into it.

tensorflow_proxy-nca's People

Contributors

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