Git Product home page Git Product logo

osdn's People

Contributors

abhijitbendale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osdn's Issues

Unable to reproduce the result

While using the imageNetFeatures script, I ran into following errors:-

  1. the mean_file available in data folder is throwing the error during classifier stage
    [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)
  2. We also removed axis from squeeze function while adding fc8 and fc7 features into mat.

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-

  1. Error while using axis in squeeze:

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)

  1. Error while using given mean file:

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.

Not able to compile libMR

Hello,

I have some problems with the code.

When I use the command:

/compile.sh

, I got:

gcc: error: unrecognized command line option ‘-fstack-protector-strong’
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
error: command 'gcc' failed with exit status 1
cp: cannot stat ‘libmr.so’: No such file or directory

Do you now what kind gcc is needed for this?

extracted features from fooling images

In readme, it is said 'We will upload the fooling images and features extracted for fooling images in few days'. I don't think the extracted features are uploaded. I am wondering if there is a plan to do so.

If not, I think we should modify imageNet_Features.py and generate the extracted features from there?

Re-calibrate scores

Hello,

Please, the "channel_scores" is the feature vector of the "fc8" layer for a specific channel, then why did you loop over the "categoryid" to compute modified_fc8_score = channel_scores[categoryid] * ( 1 - wscore*ranked_alpha[categoryid] ) ?
Yet, the Len(channel_scores) is not equal to NCHANNELS.

Thank you.

fit_high() function gives high scores for higher distances while low scores for low distances

In the paper "Towards Open Set Deep Networks" it is mentioned, that we have to do per class Weibull fit using FitHigh function. However, in the documentation html files it is written that FItHigh should be used if the data is such that larger is better, which I suppose is referred to large distances from the mean activation vector.

Using FitHigh function, gives larger scores for larger distances, but according to the paper, should it be the opposite? What I meant to say is that, should, we get low scores for larger distances from the mean activation vector?

And if I am not wrong, shouldn't FitLow function be used in place of FitHigh?

This is what I obtained

import libmr as mr
meta = mr.MR()
meta.fit_high(sorted_dist[-100:],100)
meta.w_score(0.0)
0.0
meta.w_score(10.0)
0.21476801948365665
meta.w_score(20.0)
0.9963975817523232
meta.w_score(30.0)
0.9999996470632248
meta.w_score(40.0)
0.9999999999978881
meta.fit_low(sorted_dist[-100:],100)
meta.w_score(0.0)
1.0
meta.w_score(10.0)
0.8115743914686449
meta.w_score(20.0)
1.665564614727888e-05
meta.w_score(30.0)
0.0
meta.w_score(40.0)
0.0

I am also attaching the plot of the sorted distances of all the 1011 correctly classified training examples of only one class, from the mean activation vector of that class.
figure_1

I can't run ImagenetFeature.py

I tried to run ImagenetFeature.py. The imagenetFeature.py can't excute because caffe does't have gpu and mean_file parameter. The picture shows init method in caffe library.
image

In the imagenetFearute.py, that send the gpu and mean_file parameter to caffe library to create the object.

Question: How can i fixed it. Can I remove the gpu and mean_file parameter in ImagenetFeature.py.

unknown probs for negative logits

wscore = category_weibull[2][channel].w_score(channel_distance)
modified_fc8_score = channel_scores[categoryid] * ( 1 - wscore*ranked_alpha[categoryid] )
openmax_fc8_channel += [modified_fc8_score]
openmax_fc8_unknown += [channel_scores[categoryid] - modified_fc8_score ]

Can you explain how this works with negative fc8 scores?
As I understand, if v_i(x) is negative then even with w_i=1, v_0(x)=0, so v_i < v_0.
In fact a fc8 layer may contain negative logits, and it leads to a high unknown-unknown probability in my dataset.

features = loadmat('data/train_features/n01440764/n01440764_9981.JPEG.mat')
ch = 0
features['fc8'][ch]>0

array([ True,  True,  True,  True,  True,  True,  True,  True,  True,
       False,  True,  True,  True,  True,  True,  True,  True,  True,
       False,  True,  True,  True,  True,  True,  True,  True,  True,
        True,  True,  True,  True,  True,  True,  True,  True,  True,
        True,  True,  True,  True,  True,  True, False,  True,  True,
        True,  True,  True,  True,  True,  True,  True,  True,  True,
        True,  True,  True,  True,  True,  True,  True,  True,  True,
        True,  True,  True,  True,  True,  True, False, False,  True,
       False, False, False, False,  True, False, False,  True,  True,
       False,  True,  True,  True,  True,  True,  True,  True,  True,
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.