Coder Social home page Coder Social logo

Comments (5)

yformer avatar yformer commented on August 15, 2024

@feivellau, thanks for your interest! We finetuned the entire model including encoder and decoder. I guess it may not work with efficientsam encoder and original sam decoder. Maybe you can give it a try?

from efficientsam.

feivellau avatar feivellau commented on August 15, 2024

@feivellau, thanks for your interest! We finetuned the entire model including encoder and decoder. I guess it may not work with efficientsam encoder and original sam decoder. Maybe you can give it a try?

@yformer, I have tried it and it doesn't work properly. Furthermore, I have found that the results are very poor when setting multimask_output=False to get a single mask.

from efficientsam.

yformer avatar yformer commented on August 15, 2024

@feivellau, the entire model is finetuned. It may not work properly with efficientsam encoder and original sam decoder. For a single mask, you can set multimask_output=True and then obtain the single mask from output with single_mask = predicted_logits[0, 0, 0, :, :] >= 0.

from efficientsam.

feivellau avatar feivellau commented on August 15, 2024

@yformer.

if multimask_output and self.num_multimask_outputs > 1:
    return masks[:, 1:, :], iou_pred[:, 1:]
else:
    return masks[:, :1, :], iou_pred[:, :1]

I'm just trying to follow what the original SAM paper said about a couple different mask outputs. But the results masks[:, :1, :], iou_pred[:, :1] in EfficientSAM are not good. And masks[:, 1:, :], iou_pred[:, 1:] needs to be sorted to determine the best output

from efficientsam.

feivellau avatar feivellau commented on August 15, 2024

The same issue as Expose multimask_output in EfficientSam.forward has some examples.

from efficientsam.

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.