Skip to content

Commit 554ed71

Browse files
committed
Add sort_key
Signed-off-by: Behrooz <[email protected]>
1 parent a54a17d commit 554ed71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pathology/multiple_instance_learning/panda_mil_train_evaluate_pytorch_gpu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def main_worker(gpu, args):
285285
keys=["image"],
286286
patch_size=args.tile_size,
287287
max_num_patches=args.tile_count,
288+
sort_key="max",
288289
pad_opts={"constant_values": 255},
289290
),
290291
RandFlipd(keys=["image"], spatial_axis=0, prob=0.5),
@@ -303,6 +304,7 @@ def main_worker(gpu, args):
303304
keys=["image"],
304305
patch_size=args.tile_size,
305306
max_num_patches=args.tile_count,
307+
sort_key="max",
306308
pad_opts={"constant_values": 255},
307309
),
308310
ScaleIntensityRanged(keys=["image"], a_min=np.float32(255), a_max=np.float32(0)),

0 commit comments

Comments
 (0)