From 1594d423cb68563a16264f4e9a28534075c9ac45 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 2 Nov 2021 23:04:15 +0100 Subject: [PATCH] Fix tf.py `LoadImages()` dataloader return values (#5455) --- models/tf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/tf.py b/models/tf.py index 531c8cc5a29f..61494b4a1fae 100644 --- a/models/tf.py +++ b/models/tf.py @@ -411,7 +411,7 @@ def _nms(x, topk_all=100, iou_thres=0.45, conf_thres=0.25): # agnostic NMS def representative_dataset_gen(dataset, ncalib=100): # Representative dataset generator for use with converter.representative_dataset, returns a generator of np arrays - for n, (path, img, im0s, vid_cap) in enumerate(dataset): + for n, (path, img, im0s, vid_cap, string) in enumerate(dataset): input = np.transpose(img, [1, 2, 0]) input = np.expand_dims(input, axis=0).astype(np.float32) input /= 255.0