Creado con Colaboratory

This commit is contained in:
Glenn Jocher committed 2020-11-06 17:12:23 +01:00
1 parent fed5d9cdfb
commit 58f8ba771e
1 file changed
+2 -3
+2 -3
View File
@@ -559,7 +559,6 @@
"\n", "\n",
"import torch\n", "import torch\n",
"from IPython.display import Image, clear_output # to display images\n", "from IPython.display import Image, clear_output # to display images\n",
"from utils.google_utils import gdrive_download # to download models/datasets\n",
"\n", "\n",
"clear_output()\n", "clear_output()\n",
"print('Setup complete. Using torch %s %s' % (torch.__version__, torch.cuda.get_device_properties(0) if torch.cuda.is_available() else 'CPU'))" "print('Setup complete. Using torch %s %s' % (torch.__version__, torch.cuda.get_device_properties(0) if torch.cuda.is_available() else 'CPU'))"
@@ -1159,8 +1158,8 @@
"source": [ "source": [
"# Run unit tests\n", "# Run unit tests\n",
"%%shell\n", "%%shell\n",
"#git clone https://github.com/ultralytics/yolov5\n", "# git clone https://github.com/ultralytics/yolov5\n",
"#cd yolov5\n", "# cd yolov5\n",
"pip install -qr requirements.txt onnx\n", "pip install -qr requirements.txt onnx\n",
"\n", "\n",
"export PYTHONPATH=\"$PWD\" # to run *.py. files in subdirectories\n", "export PYTHONPATH=\"$PWD\" # to run *.py. files in subdirectories\n",