Code Monkey home page Code Monkey logo

Comments (17)

sar-gupta avatar sar-gupta commented on July 20, 2024 1

Hey @bemoregt,
Can you please attach a screenshot of the same?

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024 1

@bemoregt
Can you tell me the prediction score for an image with just the horizontal lines (background) without any diagonal line?

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024 1

@bemoregt
"line or hole classes Accuarcys are same."
I don't understand what you mean by this

Can you answer a few questions:

  1. Have you changed the architecture of resnet to have only three output units?
  2. Have you trained the changed resnet with your own training data? If so, how many samples did you train it on?
  3. The sum of all predictions should be 100%. Are you passing the output prediction scores through a softmax?

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

06a6fde4-dd58-4a66-947b-e26f049de7fd

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

3a6950cf-a0e6-44e3-963f-f14eacc80420

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024

What is the classification label for this image? @bemoregt

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

@sar-gupta, label is "line".

in lables, 0:"normal", 1:"line", 2:"hole"

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024

@bemoregt
Can you check running gradcam with an image that has just one line, instead of multiple lines, and share the result?

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

@sar-gupta

Those Horizontal lines are just background.
Diagonal line is a only defect object which I want to find.

Is that background lines are critical obstacle for real object heat mapping?

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

@sar-gupta

I using target layer 4.2 or 4.1:

CONFIG = {
    'resnet34': {
        'target_layer': 'layer4.2',
        'input_size': 224
    },
    # Add your model
}.get(arch)

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024

@bemoregt
Can you tell me the prediction acore for an image with just the horizontal lines (background) without any diagonal line?

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

@sar-gupta

Normal class Classification Accuray Score may be 99.8% ..
line or hole classes Accuarcys are same.

GuidedBackpropagation mapping method is more capable than grad-CAM for my image data?

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

@sar-gupta,

Yes,

Can you answer a few questions:

1.Have you changed the architecture of resnet to have only three output units?

  • I have using transfer learning with resnet(3-outpou FC layer) + pretrained imagenet.

2.Have you trained the changed resnet with your own training data? If so, how many samples did you train it on?

  • About 5000 images per classes. Data augmented.

3.The sum of all predictions should be 100%. Are you passing the output prediction scores through a softmax?

  • Yes, of course. all prediction sum is 100%. AUC of (line correct)/total is about 99.8%, I mean.

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024

@bemoregt
Okay

I need two more things for now to help you with troubleshooting.

Softmax scores of all three classes for the following:

  1. Image with diagonal line in it.
  2. Image without diagonal line.

Both of these should have the horizontal lines as background.

Thanks

from gradcam-pytorch.

bemoregt avatar bemoregt commented on July 20, 2024

@sar-gupta

1.Image with diagonal line in it. >> Line Class
2.Image without diagonal line. >> Nomal class

Both scores are nearly 0.998 (softmax).

Thanks.

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024

@bemoregt Kindly provide the softmax scores for all three classes in both the cases.

To clarify, by softmax score, I mean the three outputs from softmax layer.

from gradcam-pytorch.

sar-gupta avatar sar-gupta commented on July 20, 2024

Closing because the issue is not related to this project. However, discussion can be continued here.

from gradcam-pytorch.

Related Issues (1)

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.