Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix to adapt label conversion scripts for papila #312

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions torch_em/data/datasets/medical/papila.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ def _get_papila_paths(path, task, expert_choice, download):
image_paths = sorted(glob(os.path.join(data_dir, "FundusImages", "*.jpg")))

gt_dir = os.path.join(data_dir, "ground_truth")
if os.path.exists(gt_dir):
gt_paths = sorted(glob(os.path.join(gt_dir, f"*_{task}_{expert_choice}.tif")))
return image_paths, gt_paths

os.makedirs(gt_dir, exist_ok=True)

patient_ids = [Path(image_path).stem for image_path in image_paths]
Expand Down