Git Product home page Git Product logo

Comments (5)

nipponjo avatar nipponjo commented on June 21, 2024

Hello, I used the demo app to draw the masks in the examples/inpaint/ folder.

from deepfillv2-pytorch.

qsc227 avatar qsc227 commented on June 21, 2024

why i try to push the impaint button , there is nothing like this?
image

from deepfillv2-pytorch.

nipponjo avatar nipponjo commented on June 21, 2024

I'm not sure. By default, the weight files (e.g. states_tf_places2.pth) need to be put into the pretrained/ folder. The path to the files can be changed in app/models.yaml.

from deepfillv2-pytorch.

juntaosun avatar juntaosun commented on June 21, 2024

我也遇到同样的问题,使用示例的图片和mask一切正常
I also have the same problem, Everything works fine with the picture and mask of the example

当我使用photoshop进行蒙版绘制,它的结果不正常。在PS中使用白色画笔和透明区,保存为png格式。
when I use photoshop for mask drawing, it doesn't work. Use white brush and transparent area in PS, save as png format.

那么在PS中,该如何正确绘制mask?
So in PS, how to draw the mask correctly ?

from deepfillv2-pytorch.

nipponjo avatar nipponjo commented on June 21, 2024

It seem like PS saves the channels in a different order, so that
mask = mask[0:1, :h//grid*grid, :w//grid*grid].unsqueeze(0) (e.g., in test.py)
should be changed to
mask = mask[3:4, :h//grid*grid, :w//grid*grid].unsqueeze(0)

I will look into this further later.

from deepfillv2-pytorch.

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.