reab5555 commited on
Commit
179e3d4
·
verified ·
1 Parent(s): 9d15cff

Update visualization.py

Browse files
Files changed (1) hide show
  1. 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 = FigureCanvas(fig)
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,))