-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create testing dataset #2
Conversation
@lrouhier to squeeze size, can you:
|
In the readme: indicate the changes to the dataset (e.g., sub-selection of subject, processing, etc.) |
167f44f
to
646f106
Compare
done and previous commit has been squashed to reduc repo size. Repo size is now 33 mb. |
@jcohenadad I think it is ready |
README.md
Outdated
@@ -1,2 +1,10 @@ | |||
# data-testing | |||
Light-weighted data for testing/tutorial | |||
|
|||
# Content | |||
* sub-unf01: Bids folder with multiple contrast (T2w,T2star and T1w). Original image from [ivadomed spine generic example repo](https://github.com/ivadomed/data_example_spinegeneric/releases/tag/r20200907) resampled to 1mm isotropic and converted to float32 to reduce repo size. Subject was randomly selected among the available subjects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it says "sub-test001" in the bounding_box_dict.json file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 9bce745
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
images have 80 slices, which seems unnecessarily large. Even when testing 3D kernels, this is probably an overkill. Why not cropping to 10 slices? we will reduce the size from ~30MB to ~4MB.
that's a lot of BW we can save given that those testing data are being downloaded for each CI run (ie. multiple times a day)
Yes will do and squash the commit that created the file to have a lighter repo. I'll add the transformation to the README |
9f66146
to
450ae5a
Compare
converting to 1mm isotropic and float32 images
Co-authored-by: Julien Cohen-Adad <[email protected]>
1f34e4b
to
0aa6b80
Compare
We have a repo of 8 mb do you want me to crop the image further ? |
f8834d7
to
9bce745
Compare
I forced push again. we need to have at least 16 slice per image. This is neede because the filter on the 3D unet has an issue with only ten slices (due to stride and convolution if I am correct) |
i don't see the images anymore in the latest commit 9bce745. |
Yes the images are not there because i was doing some tests to be sure that it would work this time (and wanted to avoid having to clean the repo a fourth time). |
i think you don't need to bother with that, as we will do a squash merge. I believe this gets rid of the history (in case you re-uploaded binaries multiple times)-- @kouzu can you confirm? |
I just added the images that works with the tests. I cropped all dimension (details of the bounding box in readme). Repo is 4.5 mb I think (zip download is 2.5 mb). |
on 2a55d35 json files are missing:
|
we should probably set up a procedure for generating json files on images that were processed (because the matrix size does not correspond anymore), but this is out of the scope of this PR. @lrouhier are the discrepancies between the json and the images (e.g. dim, matrix size, resolution, etc.) a problem when running ivadomed? |
No, for now the tests are running without them (because we used the contrast metadata which is in the name). However, They could be useful if we decide to create a test for FILM. |
|
oopsi! |
so, does it mean that ivadomed's loader doesn't care if there is no json file in the BIDS dataset? |
I think so if it doesn't need it (from here). In the next lines an error is raised if the asked field is missing. |
Not sure which field I need to change in the json for matrix size, resolution, dim ect .. @jcohenadad |
will be addressed in #3 |
I have some concerns with the decision to create random labels not representing the image content ivadomed/ivadomed#392, but we don,t need to fix it here |
This PR aims at uploading testing data used in the ivadomed testing suite
Images and files:
Subject used is sub-unf01 from https://github.com/ivadomed/data_example_spinegeneric
derivatives/labels/sub-unf01_lesion-manual.nii.gz are dummy seg. The goal is to use seg_manual as a ROI and lesion-manual as target.