소스 검색

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

Add  `check_requirements(('pycocotools>=2.0',))`
modifyDataloader
Glenn Jocher GitHub 2 년 전
부모
커밋
c759bbdf19
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. +5
    -4
      data/Objects365.yaml

+ 5
- 4
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

Loading…
취소
저장