Code Monkey home page Code Monkey logo

diffusion-model-tf-generativefill's Introduction

Generative Fill Tensorflow & Keras

This work uses diffusion models to implement generative fill techniques like image unmasking, inpainting, expansion and various generative fill techniques.

Image inpainting (Original image, Masked image, Reconstructed image)

DDPM generated (Trained and generated using Landscape dataset).

LDM generated (Trained on COCO and generated using Landscape dataset).

Sampling with COCO

More generated images can be found in results

Check out my DDPM implementation.

LDM & DDPM for GenFill

This repo includes generative filling using DDPM. To perform the same using LDM, checkout my LDM repo here. The ldm-genfill folder in this repo only has the model config files to perform Generative filling using ldm models. So, use the implementation in my LDM repo with config files in this repo. Demo & other instructions for all LDM conditioning is available in the LDM repo.

Currently unmasked regions from DDPM looks more contextually relevant compared to LDM as DDPM directly works on images. Using Text and class conditioning to support GenFill slightly improves the ability of contextual fill and further training also may improve. There may be plans to make improvements at a later time.

Target(More may be added.)

  • Reconstructing missing areas of images a.k.a image inpainting.

Recent Updates

  • Implement generative fill techniques with class and text guidance.
  • Generative filling in latent space for High Resolution.

Acknowledgements

Training & Generation demo

diffusion-model-tf-generativefill's People

Contributors

nithishm2410 avatar

Stargazers

Constantine Zavezeon avatar Dawood M.Shoaib avatar  avatar

Watchers

Kostas Georgiou avatar  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.