Skip to content

Question Regarding Dataset Structure and Preprocessing for Fundus Experiments #3

Open

Description

@jinyehui02

Hi Professor,

Thank you very much for sharing the code.

I have downloaded the official fundus datasets (Drishti-GS, RIM-ONE, and REFUGE) from the links mentioned in the paper. While trying to run the preprocessing script, I noticed that the directory structure of the downloaded datasets seems a bit different from what appears to be expected in preprocess_fundus.py. For example, the script looks for paths like:

{orig_dir}/{site}/image/*.png

However, in the official datasets I downloaded, I could not find the image/ and mask/ folders under each site.

I was wondering whether the datasets need to be reorganized into a specific folder structure before running the preprocessing script. If that is the case, could you kindly let me know what the expected directory layout should look like?

Also, I just wanted to check if there were any additional preprocessing steps used before running the code that might not be included in the repository.

Thank you very much for your time and help.

Best regard

Activity

  1. siomvas commented on Mar 11, 2026

    @siomvas
    Owner

    Yes, that's correct you should manually create the expected tree before running the preprocessing script.

    Alternatively you can modify the preprocessing scripts to work on the original folder structure.

    The only preprocessing done is the one included in the repo, as far as I recall.

    I remember pre-processing and sorting out issues with these datasets is not the easiest, so I'm keeping this open for now in case you have more issues, feel free to close it once you get everything working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions