Skip to content

napari_cellseg3d.code_models.models.model_VNet

VNet wrapper for napari_cellseg3d.

Classes:

Name Description
VNet_

VNet wrapper for napari_cellseg3d.

VNet_

Bases: VNet

VNet wrapper for napari_cellseg3d.

Methods:

Name Description
__init__

Create a VNet model.

Source code in napari_cellseg3d/code_models/models/model_VNet.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class VNet_(VNet):
    """VNet wrapper for napari_cellseg3d."""

    weights_file = "VNet_latest.pth"
    default_threshold = 0.15

    def __init__(self, in_channels=1, out_channels=1, **kwargs):
        """Create a VNet model.

        Args:
            in_channels (int): number of input channels
            out_channels (int): number of output channels.
            **kwargs: additional arguments to VNet.
        """
        try:
            super().__init__(
                in_channels=in_channels,
                out_channels=out_channels,
                bias=True,
                **kwargs,
            )
        except TypeError:
            super().__init__(
                in_channels=in_channels, out_channels=out_channels, bias=True
            )

__init__

__init__(in_channels=1, out_channels=1, **kwargs)

Create a VNet model.

Parameters:

Name Type Description Default
in_channels int

number of input channels

1
out_channels int

number of output channels.

1
**kwargs

additional arguments to VNet.

{}
Source code in napari_cellseg3d/code_models/models/model_VNet.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
def __init__(self, in_channels=1, out_channels=1, **kwargs):
    """Create a VNet model.

    Args:
        in_channels (int): number of input channels
        out_channels (int): number of output channels.
        **kwargs: additional arguments to VNet.
    """
    try:
        super().__init__(
            in_channels=in_channels,
            out_channels=out_channels,
            bias=True,
            **kwargs,
        )
    except TypeError:
        super().__init__(
            in_channels=in_channels, out_channels=out_channels, bias=True
        )