Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def inference(input_image):
|
|
41 |
# plot the semantic segmentation predictions of 21 classes in each color
|
42 |
r = Image.fromarray(output_predictions.byte().cpu().numpy()).resize(input_image.size)
|
43 |
r.putpalette(colors)
|
|
|
44 |
plt.savefig('out.png')
|
45 |
return 'out.png'
|
46 |
|
|
|
41 |
# plot the semantic segmentation predictions of 21 classes in each color
|
42 |
r = Image.fromarray(output_predictions.byte().cpu().numpy()).resize(input_image.size)
|
43 |
r.putpalette(colors)
|
44 |
+
plt.imshow(r)
|
45 |
plt.savefig('out.png')
|
46 |
return 'out.png'
|
47 |
|