Skip to content

Commit a2f2bcf

Browse files
authored
Add check_requirements(('pycocotools>=2.0',)) (ultralytics#7295)
Add `check_requirements(('pycocotools>=2.0',))`
1 parent 549ae4a commit a2f2bcf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

data/Objects365.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ names: ['Person', 'Sneakers', 'Chair', 'Other Shoes', 'Hat', 'Car', 'Lamp', 'Gla
6060

6161
# Download script/URL (optional) ---------------------------------------------------------------------------------------
6262
download: |
63-
from pycocotools.coco import COCO
6463
from tqdm import tqdm
65-
66-
from utils.general import Path, download, np, xyxy2xywhn
67-
64+
65+
from utils.general import Path, check_requirements, download, np, xyxy2xywhn
66+
67+
check_requirements(('pycocotools>=2.0',))
68+
from pycocotools.coco import COCO
6869
6970
# Make Directories
7071
dir = Path(yaml['path']) # dataset root dir

0 commit comments

Comments
 (0)