-
Notifications
You must be signed in to change notification settings - Fork 57
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
Unable to reproduce the result #3
Comments
Did you succeed in reproducing the results I am also facing the same problems. However, I used VGG-13 net instead of the one used in the paper. |
Facing same issue. I wrote a CNN in tensorflow and trained it on MNIST. In test phase, Softmax and OpenMax giving same prediction, always [0 to 9] for images from the MNIST data and also for random images (outside from MNIST). Please let me know if I am missing something or if there is an alternate solution for this. |
0 is the output label for the unknown images, after openmax the output labels of the known images will be [1-10]. If that is not the issue, then I guess the issue is that in Algorithm 2, the author has said So, when you call the w_score function, you get the output of the To get the exponential part, you need to use (1- w_score(distance)), and then multiply it with the alpha weights, and then subtract it from 1 to get the final output. Then proceed as usual. Also, don't forget to use thresholding. loc is the location parameter, scale is the scale parameter, shape is the shape parameter |
@sadimanna I agree with you, .w_score returns the Weibull CDF, so modified_fc8_score should be something like: |
@agaz1985 Actually I don't get the conception. Scores, I think, should be multiplied by 1-alpha_rankCDF rather than alpha_rankCDF(which is the probability of being outlier) to modify scores. It is because the newly added label should represent the addition of all probabilities of being outlier. As for simple example, if the probability of being outlier is zero(which means that this class should not be rejected),however, zero is multiplied by scores so that its score becomes zero. Thus, I think line in paper is mistake not line in code. Would you help me about this? |
Dear @agaz1985 , Please did you know why they loop over the "categoryid" to compute modified_fc8_score = channel_scores[categoryid] * ( 1 - wscore*ranked_alpha[categoryid] ) ? Thank you. |
While using the imageNetFeatures script, I ran into following errors:-
[ValueError: number of channels incompatible with mean]
We rectified it using the mean file provided through caffe for imagenet (Not sure if it's correct way to handle it)
After making the script work we tried running compute_openmax.py with fooling_images data provided on the main page. Surprisingly probabilty for fooling image was around 90% .
Please suggest some solution to reproduce the result specified in the thesis paper.
Error statements-
File "imageNet_Features.py", line 302, in <module> main(sys.argv) File "imageNet_Features.py", line 299, in main extractFeatures(args) File "imageNet_Features.py", line 126, in extractFeatures compute_features(imgname,args) File "imageNet_Features.py", line 176, in compute_features feature_dict['fc7'] = sp.asarray(classifier.blobs['fc7'].data.squeeze(axis=(2,3))) ValueError: 'axis' entry 2 is out of bounds [-2, 2)
Traceback (most recent call last): File "imageNet_Features.py", line 302, in <module> main(sys.argv) File "imageNet_Features.py", line 299, in main extractFeatures(args) File "imageNet_Features.py", line 126, in extractFeatures compute_features(imgname,args) File "imageNet_Features.py", line 151, in compute_features input_scale=args.input_scale, channel_swap=channel_swap) File "/home/ubuntu/deep-learning/caffe/python/caffe/classifier.py", line 37, in __init__ self.transformer.set_mean(in_, mean) File "/home/ubuntu/deep-learning/caffe/python/caffe/io.py", line 250, in set_mean raise ValueError('Mean channels incompatible with input.') ValueError: Mean channels incompatible with input.
The text was updated successfully, but these errors were encountered: