GithubHelp home page GithubHelp logo

Comments (8)

naoto0804 avatar naoto0804 commented on August 18, 2024

Thank you for reporting! I'm sorry to update the README.md. The minimum requirement for PyTorch is 0.4.1. Could you install it and try again?

from pytorch-inpainting-with-partial-conv.

123liluky avatar 123liluky commented on August 18, 2024

After installing torch0.4.1, new error is
image
And I can't find out how to solve it.

from pytorch-inpainting-with-partial-conv.

naoto0804 avatar naoto0804 commented on August 18, 2024

Could you pull the latest master and try again? I haven't faced such problems currently.

from pytorch-inpainting-with-partial-conv.

123liluky avatar 123liluky commented on August 18, 2024

Thanks for your answering.

  1. I found above error was caused by setting --image_size=256 in train.py. Now I am wondering the meaning of the third and forth line of output images in snapshots/default/images.
  2. Besides I use 2242243 training images and 2242241 masks. Is it OK? I found generate_data.py generates 3 chanel masks in which pixel value is in [0,255]. But pixels in my masks is 0 or 255, without other values in (0,255).
  3. Is the code suitable for inpainting images covered by big maks like below?
    611000000407
    I found another code is only suitable for inpainting very small masks like below
    611000000011

from pytorch-inpainting-with-partial-conv.

naoto0804 avatar naoto0804 commented on August 18, 2024
  1. I've added the description here.
  2. So you mean there are non-black or non-white pixels in the masks and it might harm the performance, right?
  3. Please refer to the original paper by the original authors. Personally I think its possible

from pytorch-inpainting-with-partial-conv.

123liluky avatar 123liluky commented on August 18, 2024

After training, I tested the model and got results like below
input image of network:
611000000027
mask:
611000000027
inpainting results:
0
The result is blurry. Do you have any suggestions to generate more plausible results.
loss_tv curve in tensorboard is like below:
image

from pytorch-inpainting-with-partial-conv.

naoto0804 avatar naoto0804 commented on August 18, 2024

One general advice is that the hyper-parameters that the author reported are for datasets of natural images like Places2, they might be not suitable for your setting.
I'm sorry if there still remains a bug.

from pytorch-inpainting-with-partial-conv.

naoto0804 avatar naoto0804 commented on August 18, 2024

In addition, the style/content loss is calculated based on pre-trained VGG. I'm not sure using these losses works for your grayscale images.

from pytorch-inpainting-with-partial-conv.

Related Issues (20)

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.