Spaces:
Build error
Build error
Danh Tran
commited on
Update predict_model.py
Browse files- predict_model.py +1 -1
predict_model.py
CHANGED
|
@@ -13,7 +13,7 @@ def run(in_image):
|
|
| 13 |
in_image = in_image.astype('float32') / 255.0
|
| 14 |
predicted = np.clip(model.predict(in_image.reshape(1,160, 160,3)),0.0,1.0).reshape(160, 160,3)
|
| 15 |
|
| 16 |
-
cv2.imwrite(f'colored-{im_path}', cv2.resize(predicted * 255., (height, width)))
|
| 17 |
# plot_inference_images(in_image,predicted)
|
| 18 |
|
| 19 |
return cv2.resize(predicted * 255., (height, width))
|
|
|
|
| 13 |
in_image = in_image.astype('float32') / 255.0
|
| 14 |
predicted = np.clip(model.predict(in_image.reshape(1,160, 160,3)),0.0,1.0).reshape(160, 160,3)
|
| 15 |
|
| 16 |
+
# cv2.imwrite(f'colored-{im_path}', cv2.resize(predicted * 255., (height, width)))
|
| 17 |
# plot_inference_images(in_image,predicted)
|
| 18 |
|
| 19 |
return cv2.resize(predicted * 255., (height, width))
|