-
Notifications
You must be signed in to change notification settings - Fork 18
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
Depth head facelift #97
Conversation
@vict0rsch @alexrey88 @51N84D @tianyu-z @sashavor can you please review this ? Thanks ! |
def get_normalized_depth_t(arr, domain): | ||
def norm_tensor(t): | ||
t = t - torch.min(t) | ||
t /= torch.max(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please correct me if I am wrong. I think min - max normalization should be: (t - min) / (max - min)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I do the operation in 2 steps, then Min is 0 after t-torch.min(t)
def get_normalized_depth_t(arr, domain): | ||
def norm_tensor(t): | ||
t = t - torch.min(t) | ||
t /= torch.max(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please correct me if I am wrong. I think min - max normalization should be: (t - min) / (max - min)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment above
In this PR, the following changes are made to the depth head:
if you want to check what the inputs would look like, npy arrays of log depth predictions from Megadepth have been saved at
/network/tmp1/ccai/data/munit_dataset/trainA_megadepth_resized