Code Monkey home page Code Monkey logo

Comments (3)

jingyuanli001 avatar jingyuanli001 commented on September 18, 2024

Hi, thanks for your question first!
For this question, I thought it is due to the biases in the training images in the dataset, i.e. they put the face in the center of of an image. Then the model might only learn to inpaint images under this setting. Besides, it seems that the cropped images are also resized to to 256, under which setting the model might fail due to the change of context resolution. Can you try to inpaint on the cropped images without resizing them? I thought there should have some way to generate good results even if the images are cropped.

from rfr-inpainting.

ZhaoWeicheng98 avatar ZhaoWeicheng98 commented on September 18, 2024

Thank you for your quick reply.
I tried setting the target size to 128*128 on the cropped images following your instruction. However, it seems better than before, still not very well.

Masked:
masked_img_14
masked_img_15

Result:
img_14
img_15

If the set target size is 128*128 for original CelebA images, the results are worse than before.

Masked:
masked_img_4
masked_img_5

Result:
img_4
img_5

Maybe a re-train or finetune is needed for a cross-resolution generation?
Thanks!

from rfr-inpainting.

jingyuanli001 avatar jingyuanli001 commented on September 18, 2024

Thank you for your quick reply.
I tried setting the target size to 128*128 on the cropped images following your instruction. However, it seems better than before, still not very well.

Masked:
masked_img_14
masked_img_15

Result:
img_14
img_15

If the set target size is 128*128 for original CelebA images, the results are worse than before.

Masked:
masked_img_4
masked_img_5

Result:
img_4
img_5

Maybe a re-train or finetune is needed for a cross-resolution generation?
Thanks!

Yeah, given the results from your case, it then seems to be necessary to at least finetune the model for a while.

from rfr-inpainting.

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.