Пример #1
0
 def _get_batch_generator(self, annotations, batch_size, repeat_times=1, jitter=True):
     """
     # Args
         annotations : Annotations instance
         batch_size : int
         jitter : bool
     
     # Returns
         batch_generator : BatchGenerator instance
     """
     batch_generator = create_batch_generator(annotations,
                                              self._input_size,
                                              self._yolo_network.get_grid_size(),
                                              batch_size,
                                              self._yolo_loss.anchors,
                                              repeat_times,
                                              jitter=jitter,
                                              norm=self._yolo_network.get_normalize_func())
     return batch_generator
Пример #2
0
 def _get_batch_generator(self, annotations, batch_size, repeat_times=1, jitter=True):
     """
     # Args
         annotations : Annotations instance
         batch_size : int
         jitter : bool
     
     # Returns
         batch_generator : BatchGenerator instance
     """
     batch_generator = create_batch_generator(annotations,
                                              self._input_size,
                                              self._yolo_network.get_grid_size(),
                                              batch_size,
                                              self._yolo_loss.anchors,
                                              repeat_times,
                                              jitter=jitter,
                                              norm=self._yolo_network.get_normalize_func())
     return batch_generator