aadeshnpn / OSDN

Keras implementation for the research paper "Towards Open Set Deep Networks" A Bendale, T Boult, CVPR 2016
GNU Lesser General Public License v3.0
75 stars 21 forks source link

Question about data processing #19

Open Leahxx opened 3 years ago

Leahxx commented 3 years ago

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!