Skip to content

Commit 899b3bd

Browse files
committed
Update model_SwinUNetR.py
1 parent 932a843 commit 899b3bd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

napari_cellseg3d/code_models/models/model_SwinUNetR.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class SwinUNETR_(SwinUNETR):
1212
def __init__(
1313
self,
1414
in_channels=1,
15-
out_channels=2,
16-
input_img_size=128,
15+
out_channels=1,
16+
input_img_size=(64, 64, 64),
1717
use_checkpoint=True,
1818
**kwargs,
1919
):
@@ -24,6 +24,9 @@ def __init__(
2424
out_channels=out_channels,
2525
feature_size=48,
2626
use_checkpoint=use_checkpoint,
27+
drop_rate=0.5,
28+
attn_drop_rate=0.5,
29+
use_v2=True,
2730
**kwargs,
2831
)
2932
except TypeError as e:
@@ -34,6 +37,9 @@ def __init__(
3437
out_channels=1,
3538
feature_size=48,
3639
use_checkpoint=use_checkpoint,
40+
drop_rate=0.5,
41+
attn_drop_rate=0.5,
42+
use_v2=True,
3743
)
3844

3945
# def forward(self, x_in):

0 commit comments

Comments
 (0)