From 13d18254fd52b850f18b75917ef37ba8b5a54ace Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 14 Apr 2020 15:54:36 +0200
Subject: [PATCH] [doc] Adjustments for REFUGE dataset

---
 bob/ip/binseg/data/refuge/__init__.py | 41 +++++++++++++--------------
 doc/api.rst                           |  4 +++
 doc/datasets.rst                      | 19 +++----------
 3 files changed, 28 insertions(+), 36 deletions(-)

diff --git a/bob/ip/binseg/data/refuge/__init__.py b/bob/ip/binseg/data/refuge/__init__.py
index 717d6cdd..d96db5ec 100644
--- a/bob/ip/binseg/data/refuge/__init__.py
+++ b/bob/ip/binseg/data/refuge/__init__.py
@@ -8,29 +8,28 @@ challenge. The goal of the challenge is to evaluate and compare automated
 algorithms for glaucoma detection and optic disc/cup segmentation on a common
 dataset of retinal fundus images.
 
-* Reference: [REFUGE-2018]_
+* Reference (including train/dev/test split): [REFUGE-2018]_
 * Protocols ``optic-disc`` and ``cup``:
-    * Training samples:
-        * 400
-        * includes optic-disc and cup labels
-        * includes label: glaucomatous and non-glaucomatous
-        * original resolution: 2056 x 2124
-    * Validation samples: 400:
-        * 400
-        * includes optic-disc and cup labels
-        * original resolution: 1634 x 1634
-    * Test samples:
-        * 400
-        * includes optic-disc and cup labels
-        * includes label: glaucomatous and non-glaucomatous
-        * original resolution:
-* Split reference: [REFUGE-2018]_
-
-.. warning:
-
-   Notice that the data cropping/resizing algorithm applied on training and
-   "validation" data are slightly different and need to be cross-checked.
 
+  * Training samples:
+
+    * 400
+    * includes optic-disc and cup labels
+    * includes label: glaucomatous and non-glaucomatous
+    * original resolution: 2056 x 2124
+
+  * Validation samples:
+
+    * 400
+    * includes optic-disc and cup labels
+    * original resolution: 1634 x 1634
+
+  * Test samples:
+
+    * 400
+    * includes optic-disc and cup labels
+    * includes label: glaucomatous and non-glaucomatous
+    * original resolution:
 """
 
 import os
diff --git a/doc/api.rst b/doc/api.rst
index 00363759..84b50c5b 100644
--- a/doc/api.rst
+++ b/doc/api.rst
@@ -36,6 +36,7 @@ Datasets
    bob.ip.binseg.data.chasedb1
    bob.ip.binseg.data.hrf
    bob.ip.binseg.data.iostar
+   bob.ip.binseg.data.refuge
 
 
 Engines
@@ -171,8 +172,11 @@ Datasets
    bob.ip.binseg.configs.datasets.dristhigs1_od_test
 
    bob.ip.binseg.configs.datasets.refuge_cup
+   bob.ip.binseg.configs.datasets.refuge_cup_dev
+   bob.ip.binseg.configs.datasets.refuge_cup_test
    bob.ip.binseg.configs.datasets.refuge_cup_test
    bob.ip.binseg.configs.datasets.refuge_od
+   bob.ip.binseg.configs.datasets.refuge_od_dev
    bob.ip.binseg.configs.datasets.refuge_od_test
 
    bob.ip.binseg.configs.datasets.rimoner3_cup
diff --git a/doc/datasets.rst b/doc/datasets.rst
index 61bacb0d..54092eb4 100644
--- a/doc/datasets.rst
+++ b/doc/datasets.rst
@@ -113,27 +113,16 @@ to generate iterators for training and testing.
      - [DRISHTIGS1-2014]_
      - 50
      - 51
-   * - REFUGE_ (train)
+   * - REFUGE_
      - [REFUGE-2018]_
-     - 2056 x 2124
-     - 400
+     - 2056 x 2124 (1634 x 1634)
+     - 1200 (400+400+400)
      -
      -
      - x
      - x
      - [REFUGE-2018]_
-     - 400
-     -
-   * - REFUGE_ (val)
-     - [REFUGE-2018]_
-     - 1634 x 1634
-     - 400
-     -
-     -
-     - x
-     - x
-     - [REFUGE-2018]_
-     -
+     - 400 (+400)
      - 400
 
 
-- 
GitLab