Skip to content

Commit

Permalink
2022.08.30 19:23
Browse files Browse the repository at this point in the history
  • Loading branch information
2gunsu committed Aug 30, 2022
1 parent d40ebb0 commit dbbc806
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion model/detector/monocon_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def forward(self, data_dict: Dict[str, Any], return_loss: bool = True) -> Tuple[
return pred_dict


def batch_eval(self, data_dict: Dict[str, Any], get_vis_format: bool = False) -> Dict[str, Any]:
def batch_eval(self,
data_dict: Dict[str, Any],
get_vis_format: bool = False) -> Dict[str, Any]:

if self.training:
raise Exception(f"Model is in training mode. Please use '.eval()' first.")

Expand Down

0 comments on commit dbbc806

Please sign in to comment.