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

Doubt/Issue with extract_feature.py #7

Open
ChandraSekhar123331 opened this issue Jun 28, 2022 · 1 comment
Open

Doubt/Issue with extract_feature.py #7

ChandraSekhar123331 opened this issue Jun 28, 2022 · 1 comment

Comments

@ChandraSekhar123331
Copy link

Hi, I was going through the extract_feature.py file. I felt it had a small issue in line 63.

After this line the shape of img variable should be (W, H, C). but then after the transpose(0,1) in line 66 it's shape would become = (H , W , C) and then after the transpose(0,2) in the same line it's shape would become = (C , W , H) which is not expected right?

Can you clarify this?

@xiaohongdong
Copy link

xiaohongdong commented Jul 5, 2022

After line 63, the shape of img should be (H, W, C).
You can refer to the official documentation of PIL .
The attribute size of PIL.Image is a (width, height) tuple.

image

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