Skip to content

Commit

Permalink
Add check_requirements(('pycocotools>=2.0',)) (#7295)
Browse files Browse the repository at this point in the history
Add  `check_requirements(('pycocotools>=2.0',))`
  • Loading branch information
glenn-jocher committed Apr 5, 2022
1 parent b1300f3 commit c759bbd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions data/Objects365.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c759bbd

Please sign in to comment.