Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Changing the visualizer import path

Co-authored-by: Ludo Cornelissen <ludo.cornelissen@intel.com>
  • Loading branch information
igor-davidyuk and ljcornel authored Jul 4, 2024
1 parent 29069cc commit b9f4195
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion geti_sdk/deployment/resources/OVMS_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
predictions = deployment.infer(image=image)

# Show inference result
from geti_sdk.prediction_visualization.visualizer import Visualizer
from geti_sdk import Visualizer
visualizer = Visualizer()
result_image = visualizer.draw(image=image, annotation_scene=predictions)
visualizer.show_window(result_image)
Expand Down
2 changes: 1 addition & 1 deletion notebooks/008_deploy_project.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"metadata": {},
"outputs": [],
"source": [
"from geti_sdk.prediction_visualization.visualizer import Visualizer\n",
"from geti_sdk import Visualizer\n",
"\n",
"visualizer = Visualizer()\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/010_model_serving.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
},
"outputs": [],
"source": [
"from geti_sdk.prediction_visualization.visualizer import Visualizer\n",
"from geti_sdk import Visualizer\n",
"\n",
"visualizer = Visualizer()\n",
"result = visualizer.draw(numpy_image, prediction)\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/012_post_inference_hooks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"import cv2\n",
"\n",
"from geti_sdk.demos import EXAMPLE_IMAGE_PATH\n",
"from geti_sdk.prediction_visualization.visualizer import Visualizer\n",
"from geti_sdk import Visualizer\n",
"\n",
"numpy_image = cv2.imread(EXAMPLE_IMAGE_PATH)\n",
"numpy_rgb = cv2.cvtColor(numpy_image, cv2.COLOR_BGR2RGB)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"metadata": {},
"outputs": [],
"source": [
"from geti_sdk.prediction_visualization.visualizer import Visualizer\n",
"from geti_sdk import Visualizer\n",
"from geti_sdk.rest_clients import AnnotationClient\n",
"\n",
"annotation_client = AnnotationClient(\n",
Expand Down

0 comments on commit b9f4195

Please sign in to comment.