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

Attempting to understand the denoising. #475

Open
Alexandre-SCHOEPP opened this issue Oct 14, 2024 · 0 comments
Open

Attempting to understand the denoising. #475

Alexandre-SCHOEPP opened this issue Oct 14, 2024 · 0 comments

Comments

@Alexandre-SCHOEPP
Copy link

Alexandre-SCHOEPP commented Oct 14, 2024

Greetings,

I am attempting to understand the steps you took in your denoising.py (for both versions 1 & 2). I have a few questions:

While adding some noise to the bouding boxes, you have the following operation:

rand_sign = torch.randint_like(input_query_bbox, 0, 2) * 2.0 - 1.0
rand_part = torch.rand_like(input_query_bbox)
rand_part = (rand_part + 1.0) * negative_gt_mask + rand_part * (1 - negative_gt_mask)

As far as I can tell, the final operation is equivalent to running

rand_part = rand_part + negative_gt_mask

Since

$$ (r + 1) \times n + r \times (1-n) = (r \times n + n) + (r - r \times n) = r + n $$

Is there something I missed ? Are you using floating point inaccuracy for non-linearity ?

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

1 participant