Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b02842

Browse files
committed
update
1 parent b0be140 commit 7b02842

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

code/test/test_3d_forall_fast_txtver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# from networks.efficientunet import UNet
2525
from networks.net_factory_3d import net_factory_3d
26-
from test.uttils import calculate_metric_percase, logInference, get_the_first_k_largest_components, get_rgb_from_uncertainty
26+
from uttils import calculate_metric_percase, logInference, get_the_first_k_largest_components, get_rgb_from_uncertainty
2727

2828

2929
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
@@ -126,7 +126,7 @@ def pred_single_case_3d(net, net_type, image, stride_xy, stride_z, patch_size, n
126126
test_patch = torch.from_numpy(test_patch).cuda()
127127
with torch.no_grad():
128128
if net_type == "unet_cct_dropout_3D" or net_type == "attention_unet_2dual_3d"\
129-
or net_type == "unetr_2dual_3d":
129+
or net_type == "unetr_2dual_3d" or net_type =="unet_cct_dp_3D":
130130
y_main, _ = net(test_patch)
131131
else:
132132
y_main = net(test_patch)

code/train/W_train_weaklySup_SPS_3d_soft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
default='unet_cct_dp_3D', help='select mode: unet_cct_dp_3D, \
5050
attention_unet_2dual_3d, unetr_2dual_3d')
5151
parser.add_argument('--exp', type=str,
52-
default='W_weakly_PLS_soft_3d', help='experiment_name')
52+
default='W_weakly_SPS_3d', help='experiment_name')
5353
parser.add_argument('--fold', type=str,
5454
default='stage1', help='train fold name')
5555
parser.add_argument('--sup_type', type=str,

0 commit comments

Comments
 (0)