glenn-jocher
commited on
Commit
•
042f02f
1
Parent(s):
7476012
Fix tf.py `LoadImages()` dataloader return values (#5455)
Browse files- models/tf.py +1 -1
models/tf.py
CHANGED
@@ -411,7 +411,7 @@ class AgnosticNMS(keras.layers.Layer):
|
|
411 |
|
412 |
def representative_dataset_gen(dataset, ncalib=100):
|
413 |
# Representative dataset generator for use with converter.representative_dataset, returns a generator of np arrays
|
414 |
-
for n, (path, img, im0s, vid_cap) in enumerate(dataset):
|
415 |
input = np.transpose(img, [1, 2, 0])
|
416 |
input = np.expand_dims(input, axis=0).astype(np.float32)
|
417 |
input /= 255.0
|
|
|
411 |
|
412 |
def representative_dataset_gen(dataset, ncalib=100):
|
413 |
# Representative dataset generator for use with converter.representative_dataset, returns a generator of np arrays
|
414 |
+
for n, (path, img, im0s, vid_cap, string) in enumerate(dataset):
|
415 |
input = np.transpose(img, [1, 2, 0])
|
416 |
input = np.expand_dims(input, axis=0).astype(np.float32)
|
417 |
input /= 255.0
|