Code Monkey home page Code Monkey logo

Comments (4)

jiayuanz3 avatar jiayuanz3 commented on September 17, 2024 1

That's depends on your need. We find training 3D image encoder requires much more computational resource compared to 2D. Of course, fine-tune the entirely whole model is more likely for better performance (task specific). But considering the resource, we made such training decision.

from medical-sam2.

jiayuanz3 avatar jiayuanz3 commented on September 17, 2024

In this work, we train subparts except prompt encoder. Because we mention the terminology `one-prompt' proposed in the paper, so the occurrence of prompts should be sparse. That's why we froze prompt encoder. The image embedding's quality has an influence on memory quality, that's why we train both. For MSA, it attempts to efficiently adapt to the medical setting, so only train part of the layers in the image encoder. As medical image varies a lot to natural image (e.g. modality, ambiguous boundary etc.), we train the mask decoder in both MSA and MedSAM-2. In short, the scope and purpose of these two methods are different, so we make different decisions at training components. Also, you can freely freeze or defreeze any part depends on your need. Hope that helps!

from medical-sam2.

summelon avatar summelon commented on September 17, 2024

In this work, we train subparts except prompt encoder. Because we mention the terminology `one-prompt' proposed in the paper, so the occurrence of prompts should be sparse. That's why we froze prompt encoder. The image embedding's quality has an influence on memory quality, that's why we train both. For MSA, it attempts to efficiently adapt to the medical setting, so only train part of the layers in the image encoder. As medical image varies a lot to natural image (e.g. modality, ambiguous boundary etc.), we train the mask decoder in both MSA and MedSAM-2. In short, the scope and purpose of these two methods are different, so we make different decisions at training components. Also, you can freely freeze or defreeze any part depends on your need. Hope that helps!

Thank you for your reply
I apologize for the mistake in my question (updated).
I am trying to figure out: in this work, why the image encoder is trainable in 2D training but frozen in 3D training?

from medical-sam2.

summelon avatar summelon commented on September 17, 2024

Very clear.
Thank you so much.

from medical-sam2.

Related Issues (20)

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.