Skip to content

Regarding choosing BATCH_SIZE #262

Answered by mmuckley
mouryarahul asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mouryarahul
Comment options

Answer selected by mouryarahul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants