Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion colab/01_Building_the_Hank_ai_Darknet_YOLO_Framework.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
},
"outputs": [],
"source": [
"# Check that the google colab instance provides a GPU before starting",
"import os\n",
"assert os.environ.get(\"COLAB_GPU\"), \"GPU required. Change runtime type to GPU in Edit > Notebook settings > T4 GPU\"\n",
"\n",
"# First part will install the tools we'll use to build.\n",
"!sudo apt-get install build-essential git libopencv-dev cmake\n",
"\n",
Expand Down Expand Up @@ -297,4 +301,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@
},
"outputs": [],
"source": [
"# make sure the notebook is set to T4 GPU (edit->settings)\n",
"!sudo apt-get install build-essential git libopencv-dev cmake\n",
"# Check that the google colab instance provides a GPU before starting",
"import os\n",
"assert os.environ.get(\"COLAB_GPU\"), \"GPU required. Change runtime type to GPU in Edit > Notebook settings > T4 GPU\"\n",
"\n",
"!sudo apt-get install build-essential git libopencv-dev cmake\n",
"\n",
"%mkdir -p ~/src\n",
"%cd ~/src\n",
Expand Down Expand Up @@ -173,4 +176,4 @@
"outputs": []
}
]
}
}
6 changes: 5 additions & 1 deletion colab/03_Training_a_new_network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
{
"cell_type": "code",
"source": [
"# Check that the google colab instance provides a GPU before starting",
"import os\n",
"assert os.environ.get(\"COLAB_GPU\"), \"GPU required. Change runtime type to GPU in Edit > Notebook settings > T4 GPU\"\n",
"\n",
"!sudo apt-get install build-essential git libopencv-dev cmake\n",
"\n",
"# Make sure we have access to CUDA\n",
Expand Down Expand Up @@ -188,4 +192,4 @@
"outputs": []
}
]
}
}