All Projects → marcbelmont → gan-image-similarity

marcbelmont / gan-image-similarity

Licence: GPL-3.0 License
InfoGAN inspired neural network trained on zap50k images (using Tensorflow + tf-slim). Intermediate layers of the discriminator network are used to do image similarity.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to gan-image-similarity

Pytorch Generative Model Collections
Collection of generative models in Pytorch version.
Stars: ✭ 2,296 (+1968.47%)
Mutual labels:  gan, infogan
Gan
Resources and Implementations of Generative Adversarial Nets: GAN, DCGAN, WGAN, CGAN, InfoGAN
Stars: ✭ 2,127 (+1816.22%)
Mutual labels:  gan, infogan
Tensorflow Generative Model Collections
Collection of generative models in Tensorflow
Stars: ✭ 3,785 (+3309.91%)
Mutual labels:  gan, infogan
GANs-Keras
GANs Implementations in Keras
Stars: ✭ 24 (-78.38%)
Mutual labels:  gan, infogan
Course-Project---Speech-Driven-Facial-Animation
ECE 535 - Course Project, Deep Learning Framework
Stars: ✭ 63 (-43.24%)
Mutual labels:  gan
Simple-GAN-Base-on-Matlab
simple Generative Adversarial Networks base on matlab
Stars: ✭ 24 (-78.38%)
Mutual labels:  gan
infnet-spen
TensorFlow implementation [ICLR 18] "Learning Approximate Inference Networks for Structured Prediction"
Stars: ✭ 30 (-72.97%)
Mutual labels:  gan
StyleGANCpp
Unofficial implementation of StyleGAN's generator
Stars: ✭ 25 (-77.48%)
Mutual labels:  gan
SlimGAN
Slimmable Generative Adversarial Networks (AAAI 2021)
Stars: ✭ 20 (-81.98%)
Mutual labels:  gan
chainer-wasserstein-gan
Chainer implementation of the Wesserstein GAN
Stars: ✭ 20 (-81.98%)
Mutual labels:  gan
Deep-Exemplar-based-Video-Colorization
The source code of CVPR 2019 paper "Deep Exemplar-based Video Colorization".
Stars: ✭ 180 (+62.16%)
Mutual labels:  gan
mSRGAN-A-GAN-for-single-image-super-resolution-on-high-content-screening-microscopy-images.
Generative Adversarial Network for single image super-resolution in high content screening microscopy images
Stars: ✭ 52 (-53.15%)
Mutual labels:  gan
pytorch clip guided loss
A simple library that implements CLIP guided loss in PyTorch.
Stars: ✭ 67 (-39.64%)
Mutual labels:  gan
AdvSegLoss
Official Pytorch implementation of Adversarial Segmentation Loss for Sketch Colorization [ICIP 2021]
Stars: ✭ 24 (-78.38%)
Mutual labels:  gan
wc-gan
Whitening and Coloring transform for GANs
Stars: ✭ 33 (-70.27%)
Mutual labels:  gan
metrics
IS, FID score Pytorch and TF implementation, TF implementation is a wrapper of the official ones.
Stars: ✭ 91 (-18.02%)
Mutual labels:  gan
steam-stylegan2
Train a StyleGAN2 model on Colaboratory to generate Steam banners.
Stars: ✭ 30 (-72.97%)
Mutual labels:  gan
Pytorch-Image-Translation-GANs
Pytorch implementations of most popular image-translation GANs, including Pixel2Pixel, CycleGAN and StarGAN.
Stars: ✭ 106 (-4.5%)
Mutual labels:  gan
CS231n
My solutions for Assignments of CS231n: Convolutional Neural Networks for Visual Recognition
Stars: ✭ 30 (-72.97%)
Mutual labels:  gan
automatic-manga-colorization
Use keras.js and cyclegan-keras to colorize manga automatically. All computation in browser. Demo is online:
Stars: ✭ 20 (-81.98%)
Mutual labels:  gan

gan-image-similarity

InfoGAN inspired network trained on images from zap50k. This network is using continuous latent codes + noise as input to the generator. For the image similarity part, I extract the features of last layer before the classification layer of the discriminator for all images and calculate the l2 distances.

Installation

This project is using the following python packages:

tensorflow==0.11.0rc0
scipy==0.18.1

You will also need zap50k dataset:

wget http://vision.cs.utexas.edu/projects/finegrained/utzap50k/ut-zap50k-images.zip

Training

To train the network on all the images: python main.py --logdir=logs/exp1 --batch_size=128 --file_pattern="ut-zap50k-images/*/*/*/*.jpg"

To generate the intermediate features of all the images and calculate similarity for randomly picked images: python main.py --similarity --batch_size=128 --logdir=logs/exp1 --file_pattern="ut-zap50k-images/*/*/*/*.jpg"

To get images from the generator: python main.py --logdir=logs/exp1 --sampledir=samples

Results

For each line, the first image is the seed and the rest are most similar images according to l2 distance of the intermediate features. similarity

Samples from the generator after a coulpe of epochs. similarity

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].