Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve only instance segmentation masks #136

Open
ajinkya-kulkarni opened this issue Aug 4, 2024 · 3 comments
Open

Retrieve only instance segmentation masks #136

ajinkya-kulkarni opened this issue Aug 4, 2024 · 3 comments

Comments

@ajinkya-kulkarni
Copy link

Hello team, thanks for the repo!
I was wondering if there is a way to get only the instance segmented masks instead of the added tracking as well.
I find the ensemble segmentation idea really useful, and would like to ideally train ultrack on a custom dataset (2D images and their 2D instance segmented masks), and infer the trained model on unseen 2D images.

@JoOkuma
Copy link
Member

JoOkuma commented Aug 5, 2024

Hi @ajinkya-kulkarni, you could provide a copy of your 2D images and create a time-lapse as:

video = np.stack([image] * 5)

and run ultrack on it as a timelapse with max_noise above 0, for example config.segmentation_config.max_noise = 0.01.

Then you select a single plane from the output video, they should be very similar because they are the original image with a bit of noise.

The noise is necessary because all of your images are the same.

@ajinkya-kulkarni
Copy link
Author

Interesting, thanks, will try it out!

@ajinkya-kulkarni
Copy link
Author

Hi @JoOkuma, planning to try your suggestion today.
Do you have a minimal example notebook I can try out for just getting the masks from my images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants