MedSegDiff icon indicating copy to clipboard operation
MedSegDiff copied to clipboard

how to have batch size larger than 1 and multi gpu when sampling

Open TMullerSG opened this issue 1 year ago • 0 comments

Hi, when i changed batch size larger than 1, i get error in gaussian_diffusion.py, assert t.shape == (B,). and you mentioned can use num_samples to control number of test images, but in the code , num_samples only appear in
while len(all_images) * args.batch_size < args.num_samples: and all_images is nothing but a empty list, how does num_samples change anything?

TMullerSG avatar Mar 18 '23 09:03 TMullerSG