Exemplo n.º 1
0
 def bboxes_encode(self,labels,bboxes,anchors,scope=None):
     """""
     encode labels and bounding boxes
     """""
     return ssd_common.tf_ssd_bboxes_encode(
         labels,bboxes,anchors,
         self.num_classes,
         ignore_threshold=0.5,
         scope=scope
         )
Exemplo n.º 2
0
 def bboxes_encode(self, labels, bboxes, anchors, scope=None):
     """Encode labels and bounding boxes.
     """
     return ssd_common.tf_ssd_bboxes_encode(
         labels,
         bboxes,
         anchors,
         config.num_classes,
         config.no_annotation_label,
         ignore_threshold=0.5,
         prior_scaling=config.prior_scaling,
         scope=scope)