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

Is transposing needed? #7

Open
IanYeung opened this issue Jun 6, 2018 · 1 comment
Open

Is transposing needed? #7

IanYeung opened this issue Jun 6, 2018 · 1 comment

Comments

@IanYeung
Copy link

IanYeung commented Jun 6, 2018

It seems that you do not transpose the data after reading from h5 file. The data in MATLAB is organized in (H, W, C, N). However, after reading it from h5 file in Python, it is organized in a reverse setting: (N, C, W, H). And PyTorch needs (N, C, H, W). So is it necessary to transpose the data? Thanks!

@twtygqyy
Copy link
Owner

twtygqyy commented Jun 7, 2018

Hi @IanYeung. Since rotation/flipping are applied as augmentation, and the patch is in squared shape, it actually makes not difference between (N, C, W, H) and (N, C, H, W). Please let me know if you find the transposition could help improve the performance.

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