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

What is the meaning of “refine_init” in displacement estimation? #83

Closed
Devoe-97 opened this issue Nov 1, 2024 · 2 comments
Closed

Comments

@Devoe-97
Copy link

Devoe-97 commented Nov 1, 2024

Hello, thanks for this great repo. I have a question about what “refine_init” means in the code.

displacement = ins*torch.stack((delta_flow[:, 0].float() / (self.refine_init * w),

@Parskatt
Copy link
Owner

Parskatt commented Nov 1, 2024

This is inherited from DKM. My thought then was that that if the output of the network is std=1 this normalization means that outputs are scaled to about 1/4 of the current pixel size on average. I haven't looked if it has any impact. In general its probably good to init the output of the refiners to be near 0 since theyre applied recursively.

@Devoe-97
Copy link
Author

Devoe-97 commented Nov 1, 2024

This is inherited from DKM. My thought then was that that if the output of the network is std=1 this normalization means that outputs are scaled to about 1/4 of the current pixel size on average. I haven't looked if it has any impact. In general its probably good to init the output of the refiners to be near 0 since theyre applied recursively.

Thanks!

@Devoe-97 Devoe-97 closed this as completed Nov 1, 2024
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