Skip to content

Commit a99fe58

Browse files
committed
Stack patch locations
Signed-off-by: Behrooz <[email protected]>
1 parent 7f34968 commit a99fe58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pathology/multiple_instance_learning/panda_mil_train_evaluate_pytorch_gpu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def list_data_collate(batch: collections.abc.Sequence):
238238
for i, item in enumerate(batch):
239239
data = item[0]
240240
data["image"] = torch.stack([ix["image"] for ix in item], dim=0)
241+
data["patch"]['location'] = [ix["patch"]['location'] for ix in item]
241242
batch[i] = data
242243
return default_collate(batch)
243244

0 commit comments

Comments
 (0)