Commit 981c0039 authored by Rutger Roffel's avatar Rutger Roffel Committed by pkulzc
Browse files

Fixed TensorFlow version check in object_detection_tutorial.ipynb (#5182)

* Fixed TensorFlow version check in object_detection_tutorial_ipynb

* Changed the minimum version to 1.9.0 for the object detection notebook
parent 40051c6c
......@@ -36,6 +36,7 @@
},
"outputs": [],
"source": [
"from distutils.version import StrictVersion\n",
"import numpy as np\n",
"import os\n",
"import six.moves.urllib as urllib\n",
......@@ -53,8 +54,8 @@
"sys.path.append(\"..\")\n",
"from object_detection.utils import ops as utils_ops\n",
"\n",
"if tf.__version__ \u003c '1.4.0':\n",
" raise ImportError('Please upgrade your tensorflow installation to v1.4.* or later!')\n"
"if StrictVersion(tf.__version__) \u003c StrictVersion('1.9.0'):\n",
" raise ImportError('Please upgrade your TensorFlow installation to v1.9.* or later!')\n"
]
},
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment