Spaces:
Runtime error
Runtime error
Commit
·
7e94c26
1
Parent(s):
2093e34
resize input to 512px :fire:
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ def applyColormap(img,colormap):
|
|
44 |
|
45 |
|
46 |
def inference(image):
|
|
|
47 |
img = np.array(image)[:,:,::-1]
|
48 |
result = model.predict(images=[img], visualization=True)[0]
|
49 |
result_color = applyColormap(result,colormap)
|
|
|
44 |
|
45 |
|
46 |
def inference(image):
|
47 |
+
image = image.resize(size=(512,512))
|
48 |
img = np.array(image)[:,:,::-1]
|
49 |
result = model.predict(images=[img], visualization=True)[0]
|
50 |
result_color = applyColormap(result,colormap)
|