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 dimension is the depth channel? #13

Open
whisney opened this issue Sep 13, 2022 · 3 comments
Open

what dimension is the depth channel? #13

whisney opened this issue Sep 13, 2022 · 3 comments

Comments

@whisney
Copy link

whisney commented Sep 13, 2022

tmp = img[:, :, d] # [H, W, C]

Is there a mistake in the dimension of depth here?

@ZFTurbo
Copy link
Owner

ZFTurbo commented Sep 14, 2022

Why do you think it's mistake? Any of first 3 dimensions can be depth. In this code it's assumed that 3rd dimension is depth.

@whisney
Copy link
Author

whisney commented Sep 14, 2022

But the line 259 and line 281 in the same function, it's assumed that 1st dimension is depth.

depth, height, width = img.shape[:3]

tmp = img[d, :, :] # [D, H, W, C]

@ZFTurbo
Copy link
Owner

ZFTurbo commented Sep 14, 2022

I think it's not really a bug, but 2 different dimensions used for transforms. But need to investigate. Thanks.

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