Code Monkey home page Code Monkey logo

Comments (4)

DevikalyanDas avatar DevikalyanDas commented on September 1, 2024 1

Thanks, I got the output with single background similar to how you had provided in the jupyter notebook. Also, thanks for the explanation.
clustering

from sd-dino.

Junyi42 avatar Junyi42 commented on September 1, 2024

Hi,

I think this is mainly because the instance mask is not generated/loaded correctly, therefore, the background feature map is taken into account when computing the PCA and clustering.

You could refer to this #1 issue on how to generate the correct mask. Please feel free to let me know if you have any further issues.

Best,
Junyi

from sd-dino.

DevikalyanDas avatar DevikalyanDas commented on September 1, 2024

Hello, I added the parameter argument '''decoder= False''' in load_model and the result has improved and the clustering is looking like this
clustering

It was written that this mask is only for visualization purposes. So, this means if we need the features for some downstream tasks, we don't need the mask. Right? Also, you had mentioned in issue #1 that we can use SAM to obtain mask. So, the SAM mask will basically replace the get_mask function output?

from sd-dino.

Junyi42 avatar Junyi42 commented on September 1, 2024

Hi @DevikalyanDas ,

Sorry for the late reply.

As I could see, the background is still not masked (otherwise, it should be single colored). I would suggest using other segmentation methods to generate the mask.

Also, you had mentioned in issue #1 that we can use SAM to obtain mask. So, the SAM mask will basically replace the get_mask function output?

Yes, that's right. You could try to use different ways to get the instance mask.

So, this means if we need the features for some downstream tasks, we don't need the mask. Right?

That's right. The mask is only used for removing the background feature when visualizing the feature maps.

from sd-dino.

Related Issues (16)

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.