Giter Club home page Giter Club logo

Comments (8)

jakob-ropers-snkeos avatar jakob-ropers-snkeos commented on August 16, 2024 2

I can confirm that this change makes it work perfectly on all my tools, not just the needle holder!

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

Can you share the results here (+input images, renderings of CAD model)? In the custom inference script, I set confidence_score=0.5 by default. It may be helpful to use a lower threshold to visualize more detections.

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

From what you said “close-ups of the objects, the single object only, a white background, and no occlusion” but there is still no segmentation on objects are so weird since SAM or FastSAM should segment everything. You can reduce confidence_threshold to see all detections first and make sure that there are at least some masks on objects.

from cnos.

jakob-ropers-snkeos avatar jakob-ropers-snkeos commented on August 16, 2024

Thank you for your very fast reply!

So here is an example where it worked best for me. As you can see, it still does not segment the entire object:
Templates
half_confidence

When I do it for another tool, I only get the background for some reason:
template02
bad_results

I am confused because as soon as I use a CAD model and RGB image from one of the example datasets it segments it absolutely perfectly despite the object being far away from the camera in an extremely cluttered space. Lowering the confidence threshold did not help by the way. I appreciate your help!

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

CNOS should work on this example. Can you share the RGB image + CAD model so that I can try it?

from cnos.

jakob-ropers-snkeos avatar jakob-ropers-snkeos commented on August 16, 2024

Sure! Here are two example images and the CAD model of the needle holder:

https://drive.google.com/drive/folders/1pn7letIZNACC7D1u-pwCyPvzlMBdfHJ3?usp=drive_link

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

I added stability_score_thresh parameter in inference_custom.py script so that the segmentation model can output more unstable masks (it usually happens for very tiny objects like yours). Here is the result after fine-tuning this parameter of SAM:

result

Here are the commands to reproduce the results:

export CAD_PATH=./media/demo2/NeedleHolder.ply
export RGB_PATH=./media/demo2/ThreeToolTest.png
export OUTPUT_DIR=./tmp/custom_dataset
python -m src.scripts.inference_custom --template_dir $OUTPUT_DIR --rgb_path $RGB_PATH --stability_score_thresh 0.5

I shared your example in this repo so that new users can be aware of it. Please let me know if you don't want to share this example. Thanks!

from cnos.

jakob-ropers-snkeos avatar jakob-ropers-snkeos commented on August 16, 2024

Thank you so much for he very quick response and great solution! Yes I am okay with this being used as an example!

from cnos.

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.