Giter Site home page Giter Site logo

wgenpatex's Introduction

wgenpatex

Goal of this fork

This fork implements the algorithm 1 bis from the paper https://arxiv.org/abs/2007.03408. This algorithm consists in recovering lost data of an image. To illustrate it, I followed the example of the article by chosing to do inpaiting on an image (demo_texture_1_patched.png).

In addition to the previous file a presentation (in french) highlighting the key points of the article is provided.

Edited from original Readme

Wasserstein Generative Models for Patch-based Texture Synthesis

Code related to the paper https://arxiv.org/abs/2007.03408

  • wgenpatex.py contains all the functions
  • model.py contains the generative model architecture
  • syntax python run_optim_synthesis.py target_image_path --options for running texture synthesis with image optimisation (Alg.1 from paper)
  • syntax python run_cnn_synthesis.py target_image_path --options for learning an convolutional neural network texture generator (Alg.2 from paper) (GPU recommanded)
  • syntax python run_optim_patching.py target_image_path --options for running image inpaiting with image optimisation (Alg.1bis from paper)

replace --options with any:

-w or --patch_size patch size -nmax or --n_iter_max max iterations of the algorithm -npsi or --n_iter_psi max iterations for psi -nin or --n_patches_in number of patches of the synthetized texture used at each iteration, -1 corresponds to all patches -nout or --n_patches_out number of patches of the target texture used at each iteration, -1 corresponds to all patches -sc or --scales number of scales used

--visu plot intermediate results --save save intermediate results in /tmp folder --keops' use keops package (speed-up)

wgenpatex's People

Contributors

ahoudard avatar xmaster6y 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.