Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,11 @@ import cv2
|
|
3 |
from geti_sdk.deployment import Deployment
|
4 |
from geti_sdk.utils import show_image_with_annotation_scene
|
5 |
|
6 |
-
|
7 |
# Step 1: Load the deployment
|
8 |
deployment = Deployment.from_folder("deployment")
|
9 |
deployment.load_inference_models(device="CPU")
|
10 |
|
11 |
|
12 |
-
|
13 |
def resize_image(image, target_dimension):
|
14 |
height, width = image.shape[:2]
|
15 |
max_dimension = max(height, width)
|
|
|
3 |
from geti_sdk.deployment import Deployment
|
4 |
from geti_sdk.utils import show_image_with_annotation_scene
|
5 |
|
|
|
6 |
# Step 1: Load the deployment
|
7 |
deployment = Deployment.from_folder("deployment")
|
8 |
deployment.load_inference_models(device="CPU")
|
9 |
|
10 |
|
|
|
11 |
def resize_image(image, target_dimension):
|
12 |
height, width = image.shape[:2]
|
13 |
max_dimension = max(height, width)
|