Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing Box Issue #8

Open
Haoo906 opened this issue Oct 25, 2023 · 1 comment
Open

Drawing Box Issue #8

Haoo906 opened this issue Oct 25, 2023 · 1 comment

Comments

@Haoo906
Copy link

Haoo906 commented Oct 25, 2023

it possible to change the shape of the drawing boundary (from a fixed rectangle) to draw an area of arbitrary shape?

@sjtuplayer
Copy link
Owner

Of course. The simplest way is to use a mask to represent the area you want to draw. In the new version, the compositor can predict a mask with arbitrary shape instead of the parameter of the drawing box. And the painter network should also be retrained to predict strokes inside a given mask.
However, by my experience, if the painter netowrk aims to paint in an irregular shape, the L2 loss would not be as low as the original one which predicts paths in a squared box. But you can have a try and wish you a good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants