From 59b0572e79d906561f392bc462908405fae01f82 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 14 Apr 2020 17:43:06 +0200 Subject: [PATCH] [data.refuge] Use new JSONDataset protocol name specification feature --- bob/ip/binseg/data/refuge/__init__.py | 10 +++++----- .../data/refuge/{optic-disc.json => default.json} | 0 bob/ip/binseg/data/refuge/optic-cup.json | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) rename bob/ip/binseg/data/refuge/{optic-disc.json => default.json} (100%) delete mode 120000 bob/ip/binseg/data/refuge/optic-cup.json diff --git a/bob/ip/binseg/data/refuge/__init__.py b/bob/ip/binseg/data/refuge/__init__.py index d96db5ec..766d0d0e 100644 --- a/bob/ip/binseg/data/refuge/__init__.py +++ b/bob/ip/binseg/data/refuge/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding=utf-8 -"""REFUGE (training set) for Optic Disc Segmentation +"""REFUGE for Optic Disc and Cup Segmentation The dataset consists of 1200 color fundus photographs, created for a MICCAI challenge. The goal of the challenge is to evaluate and compare automated @@ -40,10 +40,10 @@ import bob.extension from ..jsondataset import JSONDataset from ..loader import load_pil_rgb -_protocols = [ - pkg_resources.resource_filename(__name__, "optic-disc.json"), - pkg_resources.resource_filename(__name__, "optic-cup.json"), - ] +_protocols = { + "optic-disc": pkg_resources.resource_filename(__name__, "default.json"), + "optic-cup": pkg_resources.resource_filename(__name__, "default.json"), + } _root_path = bob.extension.rc.get('bob.ip.binseg.refuge.datadir', os.path.realpath(os.curdir)) diff --git a/bob/ip/binseg/data/refuge/optic-disc.json b/bob/ip/binseg/data/refuge/default.json similarity index 100% rename from bob/ip/binseg/data/refuge/optic-disc.json rename to bob/ip/binseg/data/refuge/default.json diff --git a/bob/ip/binseg/data/refuge/optic-cup.json b/bob/ip/binseg/data/refuge/optic-cup.json deleted file mode 120000 index 1691db37..00000000 --- a/bob/ip/binseg/data/refuge/optic-cup.json +++ /dev/null @@ -1 +0,0 @@ -optic-disc.json \ No newline at end of file -- GitLab