Skip to content

Why train background area with random colors? / How to mask away training data (e.g. for dynamic object removal)? #192

Answered by Tom94
xmk2222 asked this question in Q&A
Discussion options

You must be logged in to vote

Why random background colors?

Hi there, alpha==0 supervises (enforces) transparency, which conflicts with your goal of simply ignoring regions of some of the training images.

Using random colors rather than fixed colors improves this process, because the model can't just predict a solid color. It is forced to learn transparency in order to let the randomized colors "shine through".

How to mask away training data?

This codebase does allows specifying masks for ignoring training pixels, but this is distinct from marking background regions, i.e. serves a different goal.

The format is as follows: for any training image xyz.* with moving objects, you can provide a mask by including a file dyna…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@yoterel
Comment options

@Tom94
Comment options

Tom94 Jul 4, 2022
Maintainer

@yoterel
Comment options

@Tom94
Comment options

Tom94 Jul 6, 2022
Maintainer

Answer selected by Tom94
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #176 on February 20, 2022 07:37.