GithubHelp home page GithubHelp logo

felixcodestech / image-generator-via-upscaling Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 783.18 MB

This Image Generation approach is similar to Diffusion, but it uses Upscaling in the process. This is an Experiment using Scikit Learn and in no way better than Stable Diffusion, Dall-E, ...

Jupyter Notebook 100.00%
ai diffusion neural-network nn upscale upscaler upscalerimage

image-generator-via-upscaling's Introduction

Image Generator via Upscaling

This Image Generation approach is similar to Diffusion, but it uses Upscaling in the process. This is an Experiment using Scikit Learn and in no way better than Stable Diffusion, Dall-E, ...

Approach

  • A video is first converted into thousands of single frames in desired resolutions. (automatedDataPrep.ipynb)
  • This is then fed to upscalerGradually.ipynb which trains a NN on these frames. This works by taking the small Resolution Frames as X (Input) and the bigger Resolution Frames as Y (Output). In my approach I played around with the hidden layer sizes and found that a single layer with as many neurons as the input shape is quite good.
  • The Resulting Models are saved into the specified Folder.
  • Testing of the Upscaling Models can be done via onlyTestingUpscalerGradual.ipynb

Results

With my computing power (16GB RAM, i7 QuadCore, No GPU used) it was quite hard to get anything meaningful out of this. It is interesting to play around with though. If you gave this 10x the Data and hours or days of training, which my system frankly can't handle, it would probably actually result in something interesting. I think so because when testing what happens when you give it more or less data, you can clearly see that more data results in huge improvements. Mhhh, I should try this in the cloud.

For my testing until now I only got some more or less blury versions of the input image.
image
Some more testing
image
If you use noise for the images, the noise just get's upscaled and you can see some rough contours, but nothing special happens, AFAIK.
image

image-generator-via-upscaling's People

Contributors

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