Giter Site home page Giter Site logo

justhungryman / gl_image_inapinting_pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dreamegg/gl_image_inapinting_pytorch

0.0 1.0 0.0 51.58 MB

Implementation of "Globally and Locally Consistent Image Completion"

License: GNU General Public License v3.0

Python 100.00%

gl_image_inapinting_pytorch's Introduction

Globally and Locally Consistent Image Completion in pytorch

  "Globally and Locally Consistent Image Completion"
  Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa
  ACM Transaction on Graphics (Proc. of SIGGRAPH 2017), 2017

This is an implementation of the image completion model proposed in the paper (Globally and Locally Consistent Image Completion) in Pytorch 0.4.

Requirements

  • Python 3
  • Pytorch 0.4
  • TensorbardX
  • argparser
  • etc (PIL, tqdm...)

Usage

I. Prepare the training data

This step is pre-pocessing of the image (make random mask) and transform image to torch tensor.

$ cd src_gl
$ python prepare_dataset2tensor.py

in github. I already uploaded "Facade dataset" with test and train. You can put any of datasets in data folder

And also you can change image size, maske size, maske margine

$ python prepare_dataset2tensor.py --patchSize 256 --patchSize 128 --boundary_margin 8

II. Train model

Train the "GL" model with pre-processed tensor data in step I.

$ cd src_gl
$ python train.py

III. Evaluate model

$ cd src_gl
$ python eval.py

Result

Related works

Citation

Please cite the original paper in your publications:

@Article{IizukaSIGGRAPH2017,
  author = {Satoshi Iizuka and Edgar Simo-Serra and Hiroshi Ishikawa},
  title = {{Globally and Locally Consistent Image Completion}},
  journal = "ACM Transactions on Graphics (Proc. of SIGGRAPH)",
  year = 2017,
  volume = 36,
  number = 4,
  pages = 107:1--107:14,
  articleno = 107,
}

#Implementation Author chankyoo.moon / @dreamegg

gl_image_inapinting_pytorch's People

Contributors

dreamegg avatar justhungryman avatar

Watchers

James Cloos 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.