From 6591582575119034cbb336ae5a391c799c35e59a Mon Sep 17 00:00:00 2001 From: Amund Vedal <22004000+vedal@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:56:24 +0100 Subject: [PATCH] Update train.md to have runable example --- docs/en/user_guides/train.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/user_guides/train.md b/docs/en/user_guides/train.md index a68d5e4fa11..463e2935da9 100644 --- a/docs/en/user_guides/train.md +++ b/docs/en/user_guides/train.md @@ -339,7 +339,7 @@ def convert_balloon_to_coco(ann_file, out_file, image_prefix): annotations = [] images = [] obj_count = 0 - for idx, v in enumerate(track_iter_progress(data_infos.values())): + for idx, v in enumerate(track_iter_progress(list(data_infos.values()))): filename = v['filename'] img_path = osp.join(image_prefix, filename) height, width = mmcv.imread(img_path).shape[:2]