Update visualization.py
Browse files- visualization.py +1 -1
visualization.py
CHANGED
@@ -229,7 +229,7 @@ def create_heatmap(frame_time, mse_embeddings, mse_posture, mse_voice):
|
|
229 |
ax.barh(['Face', 'Posture', 'Voice'], mse_values, color=['navy', 'purple', 'green'])
|
230 |
ax.set_xlim(0, 1) # Normalize the MSE values
|
231 |
|
232 |
-
canvas =
|
233 |
canvas.draw()
|
234 |
img = np.frombuffer(canvas.tostring_rgb(), dtype='uint8')
|
235 |
img = img.reshape(fig.canvas.get_width_height()[::-1] + (3,))
|
|
|
229 |
ax.barh(['Face', 'Posture', 'Voice'], mse_values, color=['navy', 'purple', 'green'])
|
230 |
ax.set_xlim(0, 1) # Normalize the MSE values
|
231 |
|
232 |
+
canvas = FigureCanvasAgg(fig)
|
233 |
canvas.draw()
|
234 |
img = np.frombuffer(canvas.tostring_rgb(), dtype='uint8')
|
235 |
img = img.reshape(fig.canvas.get_width_height()[::-1] + (3,))
|