Coder Social home page Coder Social logo

synthtriplet-gan's Introduction

Description

Makefile

In general, the project is managed through Makefile.

You can use it to build (with command make docker-build) and run Docker images and do other things. See the comments of individual Makefile goals in the file for details.

Also, at the top of the Makefile, you can find which environment variables are required by the Makefile.

Requirements

torch == 1.3.1 torchvision == 0.4.2

Data preparation

For new dataset prepare annotation files in data/captions and data/image_splits.

Then build vocabulary by running:

python3 build_vocab.py --data_set shoes

Training

Pre-train image and text encoders:

CUDA_VISIBLE_DEVICES=2 python3.7 train.py --data_set=shoes --img_root=/home/datasets/style_search-dialog/images

Train SynthTriplet GAN with triplet loss ($L_C$):

CUDA_VISIBLE_DEVICES=2 python3.7 train-c-w.py --loss_type=cgan --img_root=../datasets/images --data_set=shoes

Train SynthTriplet GAN with triplet loss and gradient penalty ($L_W$):

CUDA_VISIBLE_DEVICES=2 python3.7 train-c-w.py --loss_type=wgan --img_root=../datasets/images --data_set=shoes

Train SynthTriplet GAN with triplet loss, text-adaptive discriminator and reconstruction loss ($L_T$):

python3.7 train-t.py --img_root=../datasets/images --data_set=shoes --trainclasses_file=shoes.txt --a_t=10 --ranker=encoder --freeze=gan

synthtriplet-gan's People

Contributors

ivona-tooploox avatar

Watchers

 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.