Spaces:
Runtime error
Runtime error
Commit
Β·
2cd5d0b
1
Parent(s):
519d0f9
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,11 @@ def infer(original_image):
|
|
| 25 |
output_image = np.uint32(output_image)'''
|
| 26 |
|
| 27 |
output_image = tf.cast((output[0, :, :, :] * 255), dtype=np.uint8)
|
| 28 |
-
|
| 29 |
-
print(len(output_image))
|
| 30 |
-
print([len(a) for a in output_image])
|
| 31 |
|
| 32 |
#output_image = Image.fromarray(output_image.numpy())
|
| 33 |
output_image = output_image.numpy()
|
|
|
|
| 34 |
return output_image
|
| 35 |
|
| 36 |
|
|
|
|
| 25 |
output_image = np.uint32(output_image)'''
|
| 26 |
|
| 27 |
output_image = tf.cast((output[0, :, :, :] * 255), dtype=np.uint8)
|
| 28 |
+
|
|
|
|
|
|
|
| 29 |
|
| 30 |
#output_image = Image.fromarray(output_image.numpy())
|
| 31 |
output_image = output_image.numpy()
|
| 32 |
+
print(output_image.shape())
|
| 33 |
return output_image
|
| 34 |
|
| 35 |
|