yuxin commited on
Commit
8882bbf
1 Parent(s): 410f9a9
Files changed (1) hide show
  1. model_segvol_single.py +5 -1
model_segvol_single.py CHANGED
@@ -117,7 +117,11 @@ class SegVolModel(PreTrainedModel):
117
  logits_global_single[:, :, min_d:max_d+1, min_h:max_h+1, min_w:max_w+1] = logits_single_cropped
118
  return logits_global_single
119
 
120
-
 
 
 
 
121
 
122
  # processor
123
  class SegVolProcessor():
 
117
  logits_global_single[:, :, min_d:max_d+1, min_h:max_h+1, min_w:max_w+1] = logits_single_cropped
118
  return logits_global_single
119
 
120
+ def forward_train(self, image, train_organs, train_labels):
121
+ loss = self.model(image, text=None, boxes=None, points=None,
122
+ train_organs=train_organs,
123
+ train_labels=train_labels)
124
+ return loss
125
 
126
  # processor
127
  class SegVolProcessor():