Skip to content

Commit

Permalink
Minor fix to adapt label conversion scripts for papila (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Jun 28, 2024
1 parent aae57ce commit e0de150
Showing 1 changed file with 0 additions and 4 deletions.
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

0 comments on commit e0de150

Please sign in to comment.