Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,6 +47,9 @@ def center_crop(img, out_height, out_width):
|
|
47 |
img = img[top:bottom, left:right]
|
48 |
return img
|
49 |
|
|
|
|
|
|
|
50 |
sess = rt.InferenceSession('efficientnet-lite4-11.onnx')
|
51 |
|
52 |
def inference(img):
|
|
|
47 |
img = img[top:bottom, left:right]
|
48 |
return img
|
49 |
|
50 |
+
options = ort.SessionOptions()
|
51 |
+
options.intra_op_num_threads = 1
|
52 |
+
options.inter_op_num_threads = 1
|
53 |
sess = rt.InferenceSession('efficientnet-lite4-11.onnx')
|
54 |
|
55 |
def inference(img):
|