Browse Source

Add `check_requirements(('pycocotools>=2.0',))` (#7295)

Add  `check_requirements(('pycocotools>=2.0',))`
modifyDataloader
Glenn Jocher GitHub 2 years ago
parent
commit
c759bbdf19
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      data/Objects365.yaml

+ 5
- 4
data/Objects365.yaml View File



# Download script/URL (optional) --------------------------------------------------------------------------------------- # Download script/URL (optional) ---------------------------------------------------------------------------------------
download: | download: |
from pycocotools.coco import COCO
from tqdm import tqdm 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 # Make Directories
dir = Path(yaml['path']) # dataset root dir dir = Path(yaml['path']) # dataset root dir

Loading…
Cancel
Save