Giter VIP home page Giter VIP logo

Comments (3)

YipengHu avatar YipengHu commented on September 12, 2024 1

@s-sd @mathpluscode
We discussed a bit. I think we should simplify the folder structure for h5 files to take advantage of the format. Let's do

  • a single folder, say "train", with only two files, fixed_images.h5 and moving_images.h5;
  • optionally, depends on the loader, two extra files, moving_labels.h5 and moving_images.h5
  • use the keys string in the key-value pairs (value being the image/label volume) to indicate the structure instead; e.g.
    a) for paired, requires the same key-string as corresponding pair (between the four files), without requiring any further naming convention;
    b) for unpaired, probably no requirement at all;
    c) for grouped, the key-string has to start with "group", separate the group index with image/label index by "-", e.g. "group1-1", "group1-2"... "group2-1", "group2-2"
    d) let's not worry about multiple-part files for now (it is the same code really)

from deepreg.

s-sd avatar s-sd commented on September 12, 2024

@YipengHu , Thank you! I will try to make these changes today

from deepreg.

s-sd avatar s-sd commented on September 12, 2024

@YipengHu @mathpluscode

I have fixed the directory structure now and have updated the h5_loader functions to incorporate these new directory structure changes. The directories now look like:

For unpaired:

  • train
    • images.h5 (keys=['subject1', 'subject2' ...])
    • labels.h5 (keys=['subject1', 'subject2' ...])

For paired:

  • train
    • fixed_images.h5 (keys=['subject1', 'subject2' ...])
    • fixed_labels.h5 (keys=['subject1', 'subject2' ...])
    • moving_images.h5 (keys=['subject1', 'subject2' ...])
    • moving_labels.h5 (keys=['subject1', 'subject2' ...])

For grouped:

  • train
    • images.h5 (keys=['group-1-1', 'group-1-2', 'group-2-1'...])
    • labels.h5 (keys=['group-1-1', 'group-1-2', 'group-2-1'...])

The test folders for each follow a similar structure.

It would be great if you could have a look just to make sure that this sort of directory structure is similar to what you expect.

Thank you!

from deepreg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.