Giter Club home page Giter Club logo

pytorch-madf's Introduction

Pytorch-MADF

An Implement of MADF (Image Inpainting by Cascaded Refinement with Mask Awareness). This is a temporally anonymous repo for reproducing results of our submission.

Requirements

  • Pytorch 1.0.0
  • python 3.*
  • numpy 1.13.1

Usages

downlaod repo

  • download this repo by the following instruction:

    $ git clone https://github.com/MADF-inpainting/Pytorch-MADF.git
    $ cd Pytorch-MADF-master
    

download datasets

Mask datasets

  • Mask datasets can be download here. We train all the datasets with the same mask datasets. Notice that mask images must be 0-255 images.

Places2

  • You can download this dataset here. We use the High-resolution version in this repo.

Celeba

  • You can download this dataset here. We crop and align the images before training and testing.

Paris street view

  • You can download this dataset here.

training

  $ python train.py --train_root train_root --mask_root mask_root --test_root test_root --use_incremental_supervision  

testing

  $ python test.py --list_file test_list --snapshot model_path

Pretrained models

Places2|Celeba|PSV

  • All the released models are trained with images of resolution 512 x 512 and the training mask dataset.

Experimental Results

GT maked input inpainting result
Alt test Alt test Alt test
Alt test Alt test Alt test
Alt test Alt test Alt test
Alt test Alt test Alt test
Alt test Alt test Alt test
Alt test Alt test Alt test

pytorch-madf's People

Contributors

madf-inpainting 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.