MCPcopy
hub / github.com/qqwweee/keras-yolo3 / data_generator_wrapper

Function data_generator_wrapper

train_bottleneck.py:197–200  ·  view source on GitHub ↗
(annotation_lines, batch_size, input_shape, anchors, num_classes, random=True, verbose=False)

Source from the content-addressed store, hash-verified

195 yield [image_data, *y_true], np.zeros(batch_size)
196
197def data_generator_wrapper(annotation_lines, batch_size, input_shape, anchors, num_classes, random=True, verbose=False):
198 n = len(annotation_lines)
199 if n==0 or batch_size<=0: return None
200 return data_generator(annotation_lines, batch_size, input_shape, anchors, num_classes, random, verbose)
201
202def bottleneck_generator(annotation_lines, batch_size, input_shape, anchors, num_classes, bottlenecks):
203 n = len(annotation_lines)

Callers 1

_mainFunction · 0.70

Calls 1

data_generatorFunction · 0.70

Tested by

no test coverage detected