Git Product home page Git Product 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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pytorch-madf's Issues

I'm sorry to bother you, but I have some doubts

Your work is amazing. I'm very interested.But when I tested it, I found that I didn't know how to generate the list file.I'd appreciate it if you could give me some instructions.Thank you!

(Unicode?) Path Encoding not working on Windows

When I try to run test.py I get errors in site.py complaining of the paths showing encoded characters. I try to encode them in cp1252 or utf8 and it then traces errors that I have a null character in path ("ValueError: stat: embedded null character in path"). On windows 10.

When I just try to run the code as it is in the repo, I get this error:

Fatal Python error: initsite: Failed to import the site module
Traceback (most recent call last):
File "G:\pythonAI\Pytorch-MADF\lib\site.py", line 770, in
main()
File "G:\pythonAI\Pytorch-MADF\lib\site.py", line 747, in main
paths_in_sys = addsitepackages(paths_in_sys)
File "G:\pythonAI\Pytorch-MADF\lib\site.py", line 279, in addsitepackages
addsitedir(sitedir, known_paths)
File "G:\pythonAI\Pytorch-MADF\lib\site.py", line 202, in addsitedir
addpackage(sitedir, name, known_paths)
File "G:\pythonAI\Pytorch-MADF\lib\site.py", line 166, in addpackage
for line in f:
File "G:\pythonAI\Pytorch-MADF\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 850: character maps to < undefined >

--list_file

thanks for your great work!
I have a problem that how I can get the list file. can you give me some advice?thank you very much!

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.