Code Monkey home page Code Monkey logo

sharingan's Introduction

sharinGAN

A Generative Adversarial Network implementation that generates Sharingans. This was trained on Google Colab with 3000 epochs and it took about 10 minutes to train.

Requirements

  • PyTorch
  • numpy

or just run the following command

pip install -r requirements.txt

Dataset

I scraped bunch of images from different websites and then resized them to 128x128 size. This dataset consists of 56 images and this was the reason why it took 10 minutes to train.

Here's the GIF of outputs

final gif

Here's the Generated output

gif file

Why did I write this code?

I started learning PyTorch from the past 10 days. Fortunately, I found a very intuitve playlist on YouTube by deeplizard. Honestly, those videos are dope. Here's the link. I wanted to test out with something interesting.

I found GANs when I was taking up Andrew Ng's Introduction to Machine Learning Course and wanted to implement it in PyTorch but, I don't know how to implement it in PyTorch. So, I searched for GAN implementation on YouTube and found a video by Ayush Chaurasia where he implemented Generative Adversarial Network from the original research paper in PyTorch. His video is the only reason why this code is here and it's very similar to his code.

I then trained the GAN with FashionMNIST dataset and got pretty good results in 30 epochs but I wanted to test it out on a different dataset. Then I searched on Kaggle but most of the datasets are above 300 Mb. So, I decided not to download them because I am too lazy. Then as usual I was binge-watching YouTube and found a video by jabrils where he implements Auto Encoders. He uploaded the pokemon dataset to kaggle which is about 80 Mb and I downloaded it and trained it on Google Colab. After 300 iterations the result looks like trash. The newly generated pokemon can only be seen when you imagine its shape and edges xD. I left this project for 2 days until I found a video about GAN's in my suggestions on YouTube. The channel name is AngryCoder. He trained a GAN and it generates Sharingans. I then went to the description box and did not find any link to his code. So, I thought that I should implement this. I scraped images of Sharingans from a couple of websites then resized them to 128x128 and uploaded them as a zip to Google Colab. In fact, I took the name of this repo from his video.

Honestly, if I did not find these YouTube videos, I would've never implemented this code. Huge shoutout to them. Credits to these guys:

deeplizard

AngryCoder

Ayush Chaurasia

Contribution

No pull requests will be accepted because I want to work solo on this project.

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.