Explorar el Código

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

Add  `check_requirements(('pycocotools>=2.0',))`
modifyDataloader
Glenn Jocher GitHub hace 2 años
padre
commit
c759bbdf19
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. +5
    -4
      data/Objects365.yaml

+ 5
- 4
data/Objects365.yaml Ver fichero

@@ -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

Cargando…
Cancelar
Guardar