Spaces:
Runtime error
Runtime error
Commit
Β·
519d0f9
1
Parent(s):
183f249
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,10 @@ def infer(original_image):
|
|
25 |
output_image = np.uint32(output_image)'''
|
26 |
|
27 |
output_image = tf.cast((output[0, :, :, :] * 255), dtype=np.uint8)
|
|
|
|
|
|
|
|
|
28 |
#output_image = Image.fromarray(output_image.numpy())
|
29 |
output_image = output_image.numpy()
|
30 |
return output_image
|
|
|
25 |
output_image = np.uint32(output_image)'''
|
26 |
|
27 |
output_image = tf.cast((output[0, :, :, :] * 255), dtype=np.uint8)
|
28 |
+
print(output_image)
|
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
|