Created using Colaboratory
This commit is contained in:
parent
b760acec11
commit
79d8f1f678
|
|
@ -639,8 +639,8 @@
|
|||
"source": [
|
||||
"# Download COCO test-dev2017\n",
|
||||
"torch.hub.download_url_to_file('https://ultralytics.com/assets/coco2017labels.zip', 'tmp.zip')\n",
|
||||
"!unzip -q tmp.zip -d ../datasets && rm tmp.zip # unzip labels\n",
|
||||
"!f=\"test2017.zip\" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f -d ../datasets/coco/images # 7GB 41k images"
|
||||
"!unzip -q tmp.zip -d ../datasets && rm tmp.zip\n",
|
||||
"!f=\"test2017.zip\" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f -d ../datasets/coco/images"
|
||||
],
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
|
|
@ -651,8 +651,8 @@
|
|||
"id": "29GJXAP_lPrt"
|
||||
},
|
||||
"source": [
|
||||
"# Run YOLOv5s on COCO test\n",
|
||||
"!python val.py --weights yolov5s.pt --data coco.yaml --task test"
|
||||
"# Run YOLOv5x on COCO test\n",
|
||||
"!python val.py --weights yolov5x.pt --data coco.yaml --img 640 --iou 0.65 --half --task test"
|
||||
],
|
||||
"execution_count": null,
|
||||
"outputs": []
|
||||
|
|
|
|||
Loading…
Reference in New Issue