Comments (3)
@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.
@YipengHu , Thank you! I will try to make these changes today
from deepreg.
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)
- 2D images HOT 4
- Making docker image of deepreg HOT 3
- Fix Running DeepReg Remotely (on the Cluster) page HOT 3
- Running DeepReg on the Cluster with GPU HOT 2
- The ddf in demo_predict seems to be all 0s HOT 1
- Add CITATION.cff to point to the JOSS paper HOT 2
- Train with Big CT file HOT 2
- about traning_set'spacing HOT 5
- train() got an unexpected keyword argument 'exp_name' HOT 4
- Paired Lung CT Tutorial Error HOT 4
- Sharing DeepReg models through Hugging Face Hub HOT 5
- Most suitable algorithms for 2D histology images? HOT 2
- Atlas creation + Label propagation HOT 1
- Designing a model that predicts an affine transformation HOT 3
- get_reference_grid() assumes single precision HOT 1
- custom data loading for prediction HOT 1
- Trouble building network for Demo HOT 1
- incorrect links in demo HOT 1
- Incorrect demo script
- Pretrained models
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepreg.