Medical-SAM2
Medical-SAM2 copied to clipboard
Batch size limitations for 3D/video training
Thank you for sharing the awesome work!
I'm trying to fine-tune it for 3D/video segmentation but ran into an issue. The code seems to have the batch size hard-coded to 1: https://github.com/SuperMedIntel/Medical-SAM2/blob/534a6d808b2efcf7222c149be06211205e5eb053/func_3d/dataset/init.py#L29-L44
When I tried bumping it up to 2, it threw an error:
Quick question: In your 3D/video model experiments, did you also train with just one video per batch? Would love to know if this is expected behavior or if I might be missing something.
Thanks in advance for any insights!