Skip to content

Commit d4c67c3

Browse files
authored
Remove additional batch size checks in training (#1129)
1 parent 9634951 commit d4c67c3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

micro_sam/training/sam_trainer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ def _compute_loss(self, batched_outputs, y_one_hot):
135135
"""
136136
mask_loss, iou_regression_loss = 0.0, 0.0
137137
batch_size = len(batched_outputs)
138-
if batch_size == 0:
139-
raise RuntimeError("Got empty batch outputs in loss computation.")
140138

141139
# Loop over the batch.
142140
for batch_output, targets in zip(batched_outputs, y_one_hot):

0 commit comments

Comments
 (0)