Skip to content

Commit aa46d34

Browse files
authored
Merge pull request #65 from SonanceAI/feat/DAT-899
One-line trainer UNETR++ (DAT-899)
2 parents 297f54d + 339bfbc commit aa46d34

8 files changed

Lines changed: 1728 additions & 3 deletions

File tree

datamint/lightning/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
SemanticSegmentation2DTrainer,
99
SemanticSegmentation3DTrainer,
1010
SegmentationTrainer,
11+
VolumeSegmentationTrainer,
1112
UNetPPTrainer,
1213
DeepLabV3PlusTrainer,
1314
TransUNetTrainer,
15+
UNETRPPTrainer,
1416
)
1517

1618
__all__ = [
@@ -21,7 +23,9 @@
2123
"SemanticSegmentation2DTrainer",
2224
"SemanticSegmentation3DTrainer",
2325
"SegmentationTrainer",
26+
"VolumeSegmentationTrainer",
2427
"UNetPPTrainer",
2528
"DeepLabV3PlusTrainer",
2629
"TransUNetTrainer",
30+
"UNETRPPTrainer",
2731
]

datamint/lightning/trainers/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@
88
from .specialized.unetpp import UNetPPTrainer
99
from .specialized.deeplabv3plus import DeepLabV3PlusTrainer
1010
from .specialized.transunet import TransUNetTrainer
11+
from .vol_seg_trainer import VolumeSegmentationTrainer
12+
from .specialized.unetrpp import UNETRPPTrainer
1113

1214
__all__ = [
1315
"BaseTrainer",
1416
"SegmentationTrainer",
1517
"SemanticSegmentation2DTrainer",
1618
"SemanticSegmentation3DTrainer",
19+
"VolumeSegmentationTrainer",
1720
"UNetPPTrainer",
1821
"DeepLabV3PlusTrainer",
1922
"TransUNetTrainer",
23+
"UNETRPPTrainer",
2024
"ClassificationTrainer",
2125
"ImageClassificationTrainer",
2226
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .base import DatamintLightningModule
22
from .segmentation_module import SegmentationModule
3-
from .segmentation_modules import SMPSegmentationModule, UNetPPModule, DeepLabV3PlusModule, TransUNetModule
3+
from .segmentation_modules import SMPSegmentationModule, UNetPPModule, DeepLabV3PlusModule, TransUNetModule, UNETRPPModule
44
from .classification_module import ClassificationModule
55

6-
__all__ = ["DatamintLightningModule", "SegmentationModule", "SMPSegmentationModule", "UNetPPModule", "DeepLabV3PlusModule", "TransUNetModule", "ClassificationModule"]
6+
__all__ = ["DatamintLightningModule", "SegmentationModule", "SMPSegmentationModule", "UNetPPModule", "DeepLabV3PlusModule", "TransUNetModule", "UNETRPPModule", "ClassificationModule"]

datamint/lightning/trainers/lightning_modules/segmentation_modules/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
from .unetpp import UNetPPModule
33
from .deeplabv3plus import DeepLabV3PlusModule
44
from .transunet import TransUNetModule
5+
from .unetrpp import UNETRPPModule
56

6-
__all__ = ["SMPSegmentationModule", "UNetPPModule", "DeepLabV3PlusModule", "TransUNetModule"]
7+
__all__ = ["SMPSegmentationModule", "UNetPPModule", "DeepLabV3PlusModule", "TransUNetModule", "UNETRPPModule"]

0 commit comments

Comments
 (0)