Giter Site home page Giter Site logo

Comments (6)

constantinpape avatar constantinpape commented on July 30, 2024

We use shift kernels to compute the affinities from ground-truth, see https://github.com/inferno-pytorch/neurofire/blob/master/neurofire/transform/segmentation.py#L110.

from mutex-watershed.

celinezou avatar celinezou commented on July 30, 2024

Hi! Thanks for the quick reply. I am sorry but I met another problem when abstracting groud truth affinity. I found you used "train_loader = get_isbi_loader_3d(data_config)" in your code to get the training data and its label(ground truth affinity), so I used the same code and converted this torch dataloader to NumPy to get the ground truth affinity. But the data configuration template file has the following configurations. In this case, the size of ground truth affinity is (17, 12, 459, 459) not (17, 30, 512, 512) , which is the size of the raw data and predicted affinity you provide.
Screen Shot 2021-04-08 at 16 34 01

How can I generate ground truth affinity in size(17, 30, 512, 512)? I have tried to set the window size as (30, 512, 512), but the ground truth affinity I got from this setting has an invalid value on the boundary, like this (on the top):
Screen Shot 2021-04-08 at 16 43 48

It will be great if you can explain what does every parameter means in slicing_config and how should I set these parameters to get ground truth affinity in size(17, 30, 512, 512) like yours?

I really appreciate your time and help. Thank you so much!

Best

from mutex-watershed.

constantinpape avatar constantinpape commented on July 30, 2024

The affinities at the borders of the volume are invalid. That's why we use the padding.
Why do you need the affinities for the full volume? Training can only be done on smaller patches anyways.

In the slicing_config the parameters mean the following: window_size: size of the patch to be extracted. stride: the stride used to iterate the patch through the whole volume in order to extract patches. data_slice: the subvolume used for extracting patches in numpy slice syntax. Here, the whole volume is used. padding: padding applied to the volume, in np.pad syntax.

from mutex-watershed.

celinezou avatar celinezou commented on July 30, 2024

Thank you so so so much! It works in my case now. One final question: is there a GPU version of mutex watershed?

from mutex-watershed.

constantinpape avatar constantinpape commented on July 30, 2024

Thank you so so so much! It works in my case now.

Great!

One final question: is there a GPU version of mutex watershed?

No, the mutex watershed is based on building a spanning forest using a version of kruskal's algorithm that can express repulsive interactions. This is a sequential algorithm and not suited for GPU computing.

from mutex-watershed.

celinezou avatar celinezou commented on July 30, 2024

Thank you so much! 👍

from mutex-watershed.

Related Issues (8)

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.