Spaces:
Runtime error
Runtime error
Commit
Β·
7bca426
1
Parent(s):
92fd986
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,11 +17,12 @@ def infer(original_image):
|
|
| 17 |
output = model.predict(image)
|
| 18 |
output_image = output[0] * 255.0
|
| 19 |
output_image = output_image.clip(0, 255)
|
|
|
|
| 20 |
output_image = output_image.reshape(
|
| 21 |
(np.shape(output_image)[0], np.shape(output_image)[1], 3)
|
| 22 |
)
|
| 23 |
output_image = np.uint32(output_image)
|
| 24 |
-
|
| 25 |
return output_image
|
| 26 |
|
| 27 |
# output_image = tf.cast((output[0, :, :, :] * 255), dtype=np.uint8)
|
|
|
|
| 17 |
output = model.predict(image)
|
| 18 |
output_image = output[0] * 255.0
|
| 19 |
output_image = output_image.clip(0, 255)
|
| 20 |
+
print(output_image.shape())
|
| 21 |
output_image = output_image.reshape(
|
| 22 |
(np.shape(output_image)[0], np.shape(output_image)[1], 3)
|
| 23 |
)
|
| 24 |
output_image = np.uint32(output_image)
|
| 25 |
+
|
| 26 |
return output_image
|
| 27 |
|
| 28 |
# output_image = tf.cast((output[0, :, :, :] * 255), dtype=np.uint8)
|