-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Add models used in CellMap Segmentation Challenge.
- Loading branch information
1 parent
9f29e90
commit 125894e
Showing
8 changed files
with
1,177 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<img src="https://raw.githubusercontent.com/janelia-cellmap/cellmap-models/main/assets/CellMapLogo2.png" alt="CellMap logo" width="85%"> | ||
|
||
## This directory contains various untrained PyTorch model architectures. | ||
|
||
## Models | ||
|
||
***ResNet***: Parameterizable 2D and 3D ResNet models with a variable number of layers and channels. This model is based on the original ResNet architecture with the addition of a decoding path, which mirrors the encoder, after the bottleneck, to produce an image output. | ||
|
||
***UNet2D***: A simple 2D UNet model with a variable number of output channels. | ||
|
||
***UNet3D***: A simple 3D UNet model with a variable number of output channels. | ||
|
||
***ViTVNet***: A 3D VNet model with a Vision Transformer (ViT) encoder. This model is based on the original VNet architecture with the addition of a ViT encoder in place of the original convolutional encoder. | ||
|
||
## Usage | ||
|
||
To use these models, you can import them directly from the `cellmap_models.pytorch.untrained_models` module. For example, to import the ResNet model, you can use the following code: | ||
|
||
```python | ||
from cellmap_models.pytorch.untrained_models import ResNet | ||
model = ResNet(ndim=2, input_nc=1, output_nc=3, n_blocks=18) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .resnet import ResNet | ||
from .vitnet import ViTVNet | ||
from .unet_2D import UNet2D | ||
from .unet_3D import UNet3D |
Oops, something went wrong.