Git Product home page Git Product logo

Comments (8)

WuJunde avatar WuJunde commented on August 28, 2024 1

According to the instruction of readme.md, I have trained and obtained best_checkpoint. May I ask how to call checkpoint for subsequent segmentation tasks?

Evaluation: The code can automatically evaluate the model on the test set during traing, set "--val_freq" to control how many epoches you want to evaluate once. You can also run val.py for the independent evaluation.

Result Visualization: You can set "--vis" parameter to control how many epoches you want to see the results in the training or evaluation process.

In default, everything will be saved at ./logs/

from medical-sam-adapter.

Part-Work avatar Part-Work commented on August 28, 2024 1

How can I evaluate 'OpticDisc_Fundus_SAM_1024.pth' and 'sam_vit_b_01ec64.pth' on 'REFUGE' dataset??

from medical-sam-adapter.

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024 1

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


How can I evaluate 'OpticDisc_Fundus_SAM_1024.pth' and 'sam_vit_b_01ec64.pth' on 'REFUGE' dataset??

from medical-sam-adapter.

FJGEODEV avatar FJGEODEV commented on August 28, 2024

+1, I was trying to use val.py, but no luck. May need author's help.

from medical-sam-adapter.

WuJunde avatar WuJunde commented on August 28, 2024
  1. you cannot evaluate the prediction accuracy without target masks (to my understanding, Ground-Truth). 2. SAM is an interactive model, so it is a common assumption that the user would provide a prompt for each image (like a click on the target object or sth). In the code, we generate this prompt from target mask instead to simulate the user-given prompt. If you have neither user-given prompt nor target-mask-generated prompt, you may want to try the "segment everything" setting described in SAM paper. It is basically click-prompted the original image in grid, and pick the top-k high-confidence predicted objects of the model. For using it, you need to train the adapters under this setting.

from medical-sam-adapter.

janexue001 avatar janexue001 commented on August 28, 2024

According to the instruction of readme.md, I have trained and obtained best_checkpoint. May I ask how to call checkpoint for subsequent segmentation tasks?

from medical-sam-adapter.

janexue001 avatar janexue001 commented on August 28, 2024

According to the instruction of readme.md, I have trained and obtained best_checkpoint. May I ask how to call checkpoint for subsequent segmentation tasks?

Evaluation: The code can automatically evaluate the model on the test set during traing, set "--val_freq" to control how many epoches you want to evaluate once. You can also run val.py for the independent evaluation.

Result Visualization: You can set "--vis" parameter to control how many epoches you want to see the results in the training or evaluation process.

In default, everything will be saved at ./logs/

Thank you for your reply. The details of the training process can indeed be seen in logs. However, besides that, I want to see the visual segmentation results performed with the trained model.

from medical-sam-adapter.

janexue001 avatar janexue001 commented on August 28, 2024

from medical-sam-adapter.

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.