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

Question about data processing #19

Open
Leahxx opened this issue Jul 2, 2021 · 0 comments
Open

Question about data processing #19

Leahxx opened this issue Jul 2, 2021 · 0 comments

Comments

@Leahxx
Copy link

Leahxx commented Jul 2, 2021

Dear Author,

I found that in openmax.py, the compute_activation function:
img = np.array( Image.fromarray( (np.squeeze(img)).astype(np.uint8)).resize((28, 28)))

The input image of this function is in float32 since it has divided 255. While this line would cast the image into uint8 and make the output of the model changed (since the casted image is basically all 0s) (including the score and fc8 output). Should there be another way to process the input image?

Cheers!

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

1 participant