Regarding choosing BATCH_SIZE #262
-
Hi all, Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @mouryarahul, the code for the variational network is configured to only work with a batch size of 1 (and we should probably raise an exception if this isn't the case). The reason is that all the different k-spaces in the dataset have different shapes and if you didn't use a batch size of 1 then you'd have to figure out how to collate them. There are also several parts of the code that are basically hardcoded for a batch size of 1. At least for the U-Net with knee data, I think you can use a batch sizes greater than 1 because every sample in the knee dataset has a crop size of 320 x 320. |
Beta Was this translation helpful? Give feedback.
Hello @mouryarahul, the code for the variational network is configured to only work with a batch size of 1 (and we should probably raise an exception if this isn't the case). The reason is that all the different k-spaces in the dataset have different shapes and if you didn't use a batch size of 1 then you'd have to figure out how to collate them. There are also several parts of the code that are basically hardcoded for a batch size of 1.
At least for the U-Net with knee data, I think you can use a batch sizes greater than 1 because every sample in the knee dataset has a crop size of 320 x 320.