Spaces:
Build error
Build error
Commit ·
8cc8d3d
1
Parent(s): 8bc4f85
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def snap(image):
|
|
| 18 |
image = image.resize((640, 640))
|
| 19 |
print(image)
|
| 20 |
print("-----------")
|
| 21 |
-
image = np.asarray(image)/255
|
| 22 |
print(image)
|
| 23 |
print("-----------")
|
| 24 |
ort_sess = ort.InferenceSession("M-Raw.onnx")
|
|
|
|
| 18 |
image = image.resize((640, 640))
|
| 19 |
print(image)
|
| 20 |
print("-----------")
|
| 21 |
+
image = np.asarray(image, dtype=np.float32)/255
|
| 22 |
print(image)
|
| 23 |
print("-----------")
|
| 24 |
ort_sess = ort.InferenceSession("M-Raw.onnx")
|