Skip to content

Commit 9509fa7

Browse files
dongyang0122Dong Yang
andauthored
update scripts (#825)
Signed-off-by: Dong Yang <[email protected]> Co-authored-by: Dong Yang <[email protected]>
1 parent 31e5c82 commit 9509fa7

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

automl/DiNTS/arch_code.pth

-2.91 KB
Binary file not shown.

automl/DiNTS/search_dints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def main():
280280
CopyItemsd(keys=["label"], times=1, names=["label4crop"]),
281281
Lambdad(
282282
keys=["label4crop"],
283-
func=lambda x: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype), iterations=48).astype(x.dtype) for _k in range(output_classes)]), axis=0),
283+
func=lambda x: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype), iterations=48).astype(float) for _k in range(output_classes)]), axis=0),
284284
overwrite=True,
285285
),
286286
EnsureTyped(keys=["image", "label"]),

automl/DiNTS/search_dints.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ JSON_PATH="${DATA_ROOT}/dataset.json"
99
FOLD=4
1010
NUM_FOLDS=5
1111

12-
NUM_GPUS_PER_NODE=4
12+
NUM_GPUS_PER_NODE=8
1313
NUM_NODES=1
1414

1515
if [ ${NUM_GPUS_PER_NODE} -eq 1 ]

automl/DiNTS/train_dints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def main():
268268
CopyItemsd(keys=["label"], times=1, names=["label4crop"]),
269269
Lambdad(
270270
keys=["label4crop"],
271-
func=lambda x: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype), iterations=48).astype(x.dtype) for _k in range(output_classes)]), axis=0),
271+
func=lambda x: np.concatenate(tuple([ndimage.binary_dilation((x==_k).astype(x.dtype), iterations=48).astype(float) for _k in range(output_classes)]), axis=0),
272272
overwrite=True,
273273
),
274274
EnsureTyped(keys=["image", "label"]),

automl/DiNTS/train_dints.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ clear
33

44
TASK="Task09_Spleen"
55

6-
ARCH_CKPT="arch_code.pth"
6+
ARCH_CKPT="arch_code_cvpr.pth"
77
DATA_ROOT="/workspace/data_msd/${TASK}"
88
JSON_PATH="${DATA_ROOT}/dataset.json"
99

0 commit comments

Comments
 (0)