Skip to content

Finetuning microsam AIS (continued) #1214

Description

@chuyaowang

Hello, continuing from this issue #1211, our data also contain some mammalian cells in addition to the hyphal cells. We grow them in a coculture. The mammalian cells are imaged with a fluorescence cytoplasmic channel and a DAPI nuclear channel, while the hyphal cells are best visualized with DIC. When in focus, the mammalian cells can be segmented quite well by AIS, but is a little problematic when a part of a cell goes out of focus while a part of it is still in focus along the z stack. So I also want to fine-tune the model on the mammalian cell z-stack images.

Since the mammalian cell images contain 2 channels. How should I process the channels for finetuning, as the microsam.train._check_loader only accepts 1 or 3 channel inputs? The microsam.util._to_image function just adds a third channel of 0s, but in your paper, you described: "averaging the two channels to obtain a single channel that is then duplicated three times works better ... but is detrimental compared to using both channels independently." I want to align with your training protocol as close as possible to minimize the amount of new data distribution the model needs to learn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions