Skip to content

Commit 042f02f

Browse files
authored
Fix tf.py LoadImages() dataloader return values (#5455)
1 parent 7476012 commit 042f02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/tf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def _nms(x, topk_all=100, iou_thres=0.45, conf_thres=0.25): # agnostic NMS
411411

412412
def representative_dataset_gen(dataset, ncalib=100):
413413
# 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):
414+
for n, (path, img, im0s, vid_cap, string) in enumerate(dataset):
415415
input = np.transpose(img, [1, 2, 0])
416416
input = np.expand_dims(input, axis=0).astype(np.float32)
417417
input /= 255.0

0 commit comments

Comments
 (0)