-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error in training on timelapses #406
Comments
Hi @KartikeyKansal1! I haven't tried this exact thing, but my first thought is to incorporate the splitdim transformhttps://docs.monai.io/en/stable/transforms.html#splitdimd) in something like:
I think this will work, but your batches will be 20*batch_size and contain all the timepoints from a single image (so not i.i.d). Another approach would be to use the aicsimageloader class. For this, you would create a csv with one row per timepoint like this:
IO here might be slower, but you'll get better random sampling and have finer control over the batch size. Let me know if either of these approaches works for you or if you want more details! |
Hi @benjijamorris , thank you for the suggestions. I think I would like to go with the second approach here. I'm assuming my data config file should look something like this
I'm confused on how to create this csv, how will I pair the source and target column. |
Good question! This approach would replace the LoadImaged Transform, so
This will give you a dictionary like
your csv would look like this:
|
Gotcha, Will rest of the transforms can still be applied to ${data.columns}? and I can define columns as
And spatial_dims=3 since ZYX? |
I would change
spatial dims should be 2 since your model inputs will be CYX |
Getting this error:
I'm also not sure why the dimension_order_out is ZYX in the table. |
Looks like the Good point, that should be CYX |
I removed the zoom transform Error I'm getting now:
My data config file:
|
Hmm, I bet it's in ToTensord, maybe specifying |
Still getting the error:
|
ah sorry totally missed this. Right now, unless your I want to double check with you too that |
I made the changes. And correct, path_key: raw_path. Thanks for updating and checking in! Error:
|
Okay looks like some extra channels are getting introduced there... |
I changed it YX but still getting the same error. 2D |
I'd try clearing your |
Thank you for the suggestion.
The cache is clear.
My patch shape is [256,256] |
Okay, it looks like the issue is in the |
Hello, I'm trying to train on timelapses but the dataloader considers the time dimension as Z
I ran the following code and got the output below:
while the actual dimensions of the image are different:
I still wanna use 2D convolutions so I can't work with Z. Any suggestions?
I tried with conv3d and pulling out Z slices but that doesn't seem to work either.
The text was updated successfully, but these errors were encountered: