Created using Colaboratory

This commit is contained in:
Glenn Jocher 2021-10-22 21:19:23 +02:00
parent b760acec11
commit 79d8f1f678
1 changed files with 4 additions and 4 deletions

8
tutorial.ipynb vendored
View File

@ -639,8 +639,8 @@
"source": [ "source": [
"# Download COCO test-dev2017\n", "# Download COCO test-dev2017\n",
"torch.hub.download_url_to_file('https://ultralytics.com/assets/coco2017labels.zip', 'tmp.zip')\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", "!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 # 7GB 41k images" "!f=\"test2017.zip\" && curl http://images.cocodataset.org/zips/$f -o $f && unzip -q $f -d ../datasets/coco/images"
], ],
"execution_count": null, "execution_count": null,
"outputs": [] "outputs": []
@ -651,8 +651,8 @@
"id": "29GJXAP_lPrt" "id": "29GJXAP_lPrt"
}, },
"source": [ "source": [
"# Run YOLOv5s on COCO test\n", "# Run YOLOv5x on COCO test\n",
"!python val.py --weights yolov5s.pt --data coco.yaml --task test" "!python val.py --weights yolov5x.pt --data coco.yaml --img 640 --iou 0.65 --half --task test"
], ],
"execution_count": null, "execution_count": null,
"outputs": [] "outputs": []