Batched dataloading for contrastive learning#276
Conversation
|
Tests failing due to #277. |
|
There are some transforms that we didn't redefine in Viscy. I added some of them (
I'll setup a training for the sensor to confirm at least that the is is converging and that we can get similar results. |
|
If we run it as This might be related to the |
|
I confirm we are getting a speedboost of at least x2-4 in one node with one A40 gpu. Very active GPU!!! Thanks @ziw-liu |
|
@edyoshikun , I am unsure if this is realated to your message, but I am getting the following error when trying to run the training with 10 dataloaders.
What would be the solution for this @ziw-liu ? Thanks! |
That's a MONAI bug where they didn't implement the correct teardown method. Doesn't seem to affect our use case though. |




Changes
TripletDataModuleConcatDataModuleResults
Training on a concatenation of 2 data modules from @Soorya19Pradeep’s script takes 6 min/epoch on a small node (16 zen 2 cores, 1 A40 GPU).
Example script: