reab5555 commited on
Commit
26ad44b
·
verified ·
1 Parent(s): 96ccaf5

Update visualization.py

Browse files
Files changed (1) hide show
  1. visualization.py +3 -3
visualization.py CHANGED
@@ -230,13 +230,13 @@ def create_heatmap(t, mse_embeddings, mse_posture, mse_voice, video_fps, total_f
230
  combined_mse[1] = mse_posture_norm
231
  combined_mse[2] = mse_voice_norm
232
 
233
- fig, ax = plt.subplots(figsize=(video_width / 100, 1)) # Adjusted height to 1 for less vertical space
234
- ax.imshow(combined_mse, aspect='auto', cmap='coolwarm', vmin=0, vmax=1, extent=[0, total_frames, 0, 3])
235
  ax.set_yticks([0.5, 1.5, 2.5])
236
  ax.set_yticklabels(['Voice', 'Posture', 'Face'])
237
  ax.set_xticks([])
238
 
239
- ax.axvline(x=frame_count, color='blue', linewidth=2)
240
 
241
  canvas = FigureCanvas(fig)
242
  canvas.draw()
 
230
  combined_mse[1] = mse_posture_norm
231
  combined_mse[2] = mse_voice_norm
232
 
233
+ fig, ax = plt.subplots(figsize=(video_width / 50, 0.5))
234
+ ax.imshow(combined_mse, aspect='auto', cmap='hot', vmin=0, vmax=1, extent=[0, total_frames, 0, 3])
235
  ax.set_yticks([0.5, 1.5, 2.5])
236
  ax.set_yticklabels(['Voice', 'Posture', 'Face'])
237
  ax.set_xticks([])
238
 
239
+ ax.axvline(x=frame_count, color='black', linewidth=3)
240
 
241
  canvas = FigureCanvas(fig)
242
  canvas.draw()