Code Monkey home page Code Monkey logo

flowergan's Introduction

FlowerGAN

FlowerGAN : A DCGAN implementation in TensorFlow in Python 3 on 102 Category Flower Dataset.

Dependencies

pip install -r requirements.txt

or

pip3 install -r requirements.txt

Training

git clone https://github.com/MuhammedBuyukkinaci/FlowerGAN.git

cd ./FlowerGAN

python FlowerGAN.py

Notebook

You can download .ipynb file from here.

jupyter lab or jupyter notebook

Data

No MNIST or CIFAR-10.

This is a repository containing datasets of 8189 flower pictures belonging to 102 different categories. We aren't interested in

categories because GAN's is an UNSUPERVISED Machine Learning model.

Download .tgz extension version from here or .npy extension version from here. It is about 95 MB.

If you downloaded the dataset, extract files from 102flowers.tgz .Then put it in FlowerGAN folder.

If you download .npy file from Dropbox, put flower_photos.npy in FlowerGAN folder.

GPU

I trained on GTX 1050. 1 epoch lasted 6-7 minutes. I left my laptop overnight and obtained outputs in the morning.

If you don't want to wait for one month, use a GPU.

Architecture

Images are resized to (64,64,3) . The architecture is below:

alt text

Generated Photos

Each picture contains 16 generated photos. I trained it 100 epochs and obtained outputs 1 in 2 epochs.

alt text

flowergan's People

Contributors

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