You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: