|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
path: ../datasets/coco |
|
train: train2017.txt |
|
val: val2017.txt |
|
test: test-dev2017.txt |
|
|
|
|
|
nc: 80 |
|
names: ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light', |
|
'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', |
|
'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee', |
|
'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard', |
|
'tennis racket', 'bottle', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', |
|
'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch', |
|
'potted plant', 'bed', 'dining table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell phone', |
|
'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase', 'scissors', 'teddy bear', |
|
'hair drier', 'toothbrush'] |
|
|
|
|
|
|
|
download: | |
|
from utils.general import download, Path |
|
|
|
|
|
|
|
segments = False |
|
dir = Path(yaml['path']) |
|
url = 'https://github.com/ultralytics/yolov5/releases/download/v1.0/' |
|
urls = [url + ('coco2017labels-segments.zip' if segments else 'coco2017labels.zip')] |
|
download(urls, dir=dir.parent) |
|
|
|
|
|
urls = ['http://images.cocodataset.org/zips/train2017.zip', |
|
'http://images.cocodataset.org/zips/val2017.zip', |
|
'http://images.cocodataset.org/zips/test2017.zip'] |
|
download(urls, dir=dir / 'images', threads=3) |
|
|