Exemplo n.º 1
0
 def test_yolov2_2(self):
     from dlpy.applications import YoloV2
     anchors = []
     anchors.append(1)
     anchors.append(1)
     model = YoloV2(self.s, anchors, predictions_per_grid=1)
     model.print_summary()
Exemplo n.º 2
0
 def test_yolov2(self):
     with self.assertRaises(DLPyError):
         from dlpy.applications import YoloV2
         anchors = []
         anchors.append(1)
         anchors.append(1)
         model = YoloV2(self.s, anchors)
         model.print_summary()
Exemplo n.º 3
0
 def test_yolov2_4(self):
     from dlpy.applications import YoloV2
     anchors=[]
     anchors.append(1)
     anchors.append(1)
     anchors.append(1)
     anchors.append(1)
     model = YoloV2(self.s, anchors, predictions_per_grid=2, max_label_per_image=3, max_boxes=1)
     model.print_summary()