Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 61f53c9

Browse files
authored
Fix detection notebook issue on docker (#335)
1 parent ead9271 commit 61f53c9

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

examples/notebooks/OpenVINO_TensorFlow_object_detection_example.ipynb

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,31 @@
193193
" path = \"examples\"\n",
194194
"else:\n",
195195
" path = \"{0}/openvino_tensorflow/examples/\".format(OVTF_DIR)\n",
196-
"%cd {path}\n",
197-
"!python3 -m pip install virtualenv\n",
198-
"!virtualenv env\n",
199-
"!source env/bin/activate && chmod +x convert_yolov4.sh && bash convert_yolov4.sh && deactivate\n",
200-
"# Once the model conversion is completed; move back to outside of examples directory\n",
196+
"%cd {path}"
197+
]
198+
},
199+
{
200+
"cell_type": "code",
201+
"execution_count": null,
202+
"metadata": {},
203+
"outputs": [],
204+
"source": [
205+
"%%bash\n",
206+
"# Download and convert the model (Might take a while)\n",
207+
"python3 -m pip install --force-reinstall virtualenv\n",
208+
"# This path needs to be appended while running on the docker container\n",
209+
"export PATH=$PATH:/home/openvino/.local/bin\n",
210+
"virtualenv env\n",
211+
"source env/bin/activate && chmod +x convert_yolov4.sh && bash convert_yolov4.sh && deactivate"
212+
]
213+
},
214+
{
215+
"cell_type": "code",
216+
"execution_count": null,
217+
"metadata": {},
218+
"outputs": [],
219+
"source": [
220+
"# Once the model conversion is completed; move back outside of the examples directory\n",
201221
"%cd ../"
202222
]
203223
},

0 commit comments

Comments
 (0)