From 8c4e65d43244db7b095f6bd3ccf0a987085bfb36 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 5 Apr 2022 15:54:55 +0200 Subject: [PATCH] Add `check_requirements(('pycocotools>=2.0',))` Add `check_requirements(('pycocotools>=2.0',))` --- data/Objects365.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/data/Objects365.yaml b/data/Objects365.yaml index 1e09fd718479..82b42a120d40 100644 --- a/data/Objects365.yaml +++ b/data/Objects365.yaml @@ -60,11 +60,12 @@ names: ['Person', 'Sneakers', 'Chair', 'Other Shoes', 'Hat', 'Car', 'Lamp', 'Gla # Download script/URL (optional) --------------------------------------------------------------------------------------- download: | - from pycocotools.coco import COCO from tqdm import tqdm - - from utils.general import Path, download, np, xyxy2xywhn - + + from utils.general import Path, check_requirements, download, np, xyxy2xywhn + + check_requirements(('pycocotools>=2.0',)) + from pycocotools.coco import COCO # Make Directories dir = Path(yaml['path']) # dataset root dir