Skip to content

Commit

Permalink
Use GridSampler for CoNSeP (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig authored Sep 25, 2024
1 parent e182c72 commit ba045bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions configs/vision/pathology/offline/segmentation/consep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ data:
init_args: &PREDICT_DATASET_ARGS
root: ${oc.env:DATA_ROOT, ./data/consep}
split: train
sampler:
class_path: eva.vision.data.wsi.patching.samplers.ForegroundGridSampler
init_args:
max_samples: 25
sampler: eva.vision.data.wsi.patching.samplers.GridSampler
transforms:
class_path: eva.vision.data.transforms.common.ResizeAndCrop
init_args:
Expand Down
5 changes: 1 addition & 4 deletions configs/vision/pathology/online/segmentation/consep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ data:
init_args: &DATASET_ARGS
root: ${oc.env:DATA_ROOT, ./data/consep}
split: train
sampler:
class_path: eva.vision.data.wsi.patching.samplers.ForegroundGridSampler
init_args:
max_samples: 25
sampler: eva.vision.data.wsi.patching.samplers.GridSampler
transforms:
class_path: eva.vision.data.transforms.common.ResizeAndCrop
init_args:
Expand Down
4 changes: 2 additions & 2 deletions src/eva/vision/data/datasets/segmentation/consep.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def __init__(
root: str,
sampler: samplers.Sampler | None = None,
split: Literal["train", "val"] | None = None,
width: int = 224,
height: int = 224,
width: int = 250,
height: int = 250,
target_mpp: float = 0.25,
transforms: Callable | None = None,
) -> None:
Expand Down

0 comments on commit ba045bd

Please sign in to comment.