Skip to content

Commit a105a41

Browse files
committed
refactor: Minor cleanup
1 parent ce4a559 commit a105a41

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# ScribbleBench
22

3-
[![License Apache Software License 2.0](https://img.shields.io/pypi/l/ScribbleBench.svg?color=green)](https://github.com/Karol-G/ScribbleBench/raw/main/LICENSE)
4-
[![Python Version](https://img.shields.io/pypi/pyversions/ScribbleBench.svg?color=green)](https://python.org)
5-
63
**ScribbleBench** is a comprehensive benchmark for evaluating the generalization capabilities of 3D scribble-supervised medical image segmentation methods. It spans seven diverse datasets across multiple anatomies and modalities and provides realistic, automatically generated scribble annotations.
74

85
This repository provides:

scribblebench/evaluation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
def evaluate(gt_dir, pred_dir, num_classes, num_processes=None):
1010
gt_dir = Path(gt_dir)
1111
pred_dir = Path(pred_dir)
12-
names_gt = [path.name[:-7] for path in Path(gt_dir).rglob("*.nii.gz")]
13-
names_pred = [path.name[:-7] for path in Path(pred_dir).rglob("*.nii.gz")]
12+
names_gt = [path.name[:-7] for path in gt_dir.rglob("*.nii.gz")]
13+
names_pred = [path.name[:-7] for path in pred_dir.rglob("*.nii.gz")]
1414

1515
if set(names_gt) != set(names_pred):
1616
raise RuntimeError(f"The set of GT segmentations is different to the set of predictions. Do you have missing predictions?")

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)