Medical-SAM2 icon indicating copy to clipboard operation
Medical-SAM2 copied to clipboard

Batch size limitations for 3D/video training

Open ff98li opened this issue 1 year ago • 2 comments

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: image

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!

ff98li avatar Dec 10 '24 12:12 ff98li