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?
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!