Spaces:
Running on Zero
Running on Zero
Uploading the trimap
#3
by deleted - opened
Thanks for the tool! Can you please add an option to upload trimap image instead of drawing it inside the tool? And regarding the drawer - sometimes it may be easier to draw unknown region first and then fill other region with "foreground" layer, but filling the foreground ignores the unknown region
Thanks for the suggestions! Both are now available in the Space.
- Uploading a trimap: After loading an image, click Load trimap in the toolbar (or press
L) and choose a trimap image (black = background, gray = unknown, white = foreground). It replaces the current masks and can be undone. A trimap with a different size but the same aspect ratio is scaled to fit the image. - Fill and the unknown region: The Fill tool now stays inside the region you click in, so you can draw the unknown region first and then fill the inside with the Foreground layer.
These changes are in trimap-editor v0.1.3: https://github.com/hysts/gradio-trimap-editor/releases/tag/v0.1.3
hysts changed discussion status to closed