glenn-jocher commited on
Commit
cac8a76
1 Parent(s): 2eab46e

Created using Colaboratory

Browse files
Files changed (1) hide show
  1. tutorial.ipynb +8 -8
tutorial.ipynb CHANGED
@@ -550,7 +550,7 @@
550
  "colab": {
551
  "base_uri": "https://localhost:8080/"
552
  },
553
- "outputId": "4576b05f-d6d1-404a-fc99-5663c71e3dc4"
554
  },
555
  "source": [
556
  "!git clone https://github.com/ultralytics/yolov5 # clone repo\n",
@@ -561,14 +561,14 @@
561
  "from IPython.display import Image, clear_output # to display images\n",
562
  "\n",
563
  "clear_output()\n",
564
- "print('Setup complete. Using torch %s %s' % (torch.__version__, torch.cuda.get_device_properties(0) if torch.cuda.is_available() else 'CPU'))"
565
  ],
566
- "execution_count": 1,
567
  "outputs": [
568
  {
569
  "output_type": "stream",
570
  "text": [
571
- "Setup complete. Using torch 1.8.1+cu101 _CudaDeviceProperties(name='Tesla V100-SXM2-16GB', major=7, minor=0, total_memory=16160MB, multi_processor_count=80)\n"
572
  ],
573
  "name": "stdout"
574
  }
@@ -681,7 +681,7 @@
681
  "torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco2017val.zip', 'tmp.zip')\n",
682
  "!unzip -q tmp.zip -d ../ && rm tmp.zip"
683
  ],
684
- "execution_count": 2,
685
  "outputs": [
686
  {
687
  "output_type": "display_data",
@@ -721,7 +721,7 @@
721
  "# Run YOLOv5x on COCO val2017\n",
722
  "!python test.py --weights yolov5x.pt --data coco.yaml --img 640 --iou 0.65"
723
  ],
724
- "execution_count": 6,
725
  "outputs": [
726
  {
727
  "output_type": "stream",
@@ -922,7 +922,7 @@
922
  "# Train YOLOv5s on COCO128 for 3 epochs\n",
923
  "!python train.py --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --nosave --cache"
924
  ],
925
- "execution_count": 12,
926
  "outputs": [
927
  {
928
  "output_type": "stream",
@@ -1259,4 +1259,4 @@
1259
  "outputs": []
1260
  }
1261
  ]
1262
- }
 
550
  "colab": {
551
  "base_uri": "https://localhost:8080/"
552
  },
553
+ "outputId": "9b022435-4197-41fc-abea-81f86ce857d0"
554
  },
555
  "source": [
556
  "!git clone https://github.com/ultralytics/yolov5 # clone repo\n",
 
561
  "from IPython.display import Image, clear_output # to display images\n",
562
  "\n",
563
  "clear_output()\n",
564
+ "print(f\"Setup complete. Using torch {torch.__version__} ({torch.cuda.get_device_properties(0).name if torch.cuda.is_available() else 'CPU'})\")"
565
  ],
566
+ "execution_count": 31,
567
  "outputs": [
568
  {
569
  "output_type": "stream",
570
  "text": [
571
+ "Setup complete. Using torch 1.8.1+cu101 (Tesla V100-SXM2-16GB)\n"
572
  ],
573
  "name": "stdout"
574
  }
 
681
  "torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/releases/download/v1.0/coco2017val.zip', 'tmp.zip')\n",
682
  "!unzip -q tmp.zip -d ../ && rm tmp.zip"
683
  ],
684
+ "execution_count": null,
685
  "outputs": [
686
  {
687
  "output_type": "display_data",
 
721
  "# Run YOLOv5x on COCO val2017\n",
722
  "!python test.py --weights yolov5x.pt --data coco.yaml --img 640 --iou 0.65"
723
  ],
724
+ "execution_count": null,
725
  "outputs": [
726
  {
727
  "output_type": "stream",
 
922
  "# Train YOLOv5s on COCO128 for 3 epochs\n",
923
  "!python train.py --img 640 --batch 16 --epochs 3 --data coco128.yaml --weights yolov5s.pt --nosave --cache"
924
  ],
925
+ "execution_count": null,
926
  "outputs": [
927
  {
928
  "output_type": "stream",
 
1259
  "outputs": []
1260
  }
1261
  ]
1262
+ }