reab5555 commited on
Commit
f39138d
·
verified ·
1 Parent(s): 92bbbb6

Update visualization.py

Browse files
Files changed (1) hide show
  1. visualization.py +2 -2
visualization.py CHANGED
@@ -229,8 +229,8 @@ def create_heatmap(t, mse_embeddings, mse_posture, mse_voice, video_fps, total_f
229
  combined_mse[1] = mse_posture_norm
230
  combined_mse[2] = mse_voice_norm
231
 
232
- fig, ax = plt.subplots(figsize=(video_width / 25, 0.2)) # Much thinner height, wider width
233
- ax.imshow(combined_mse, aspect='auto', cmap='hot', vmin=0, vmax=1, extent=[0, total_frames, 0, 3])
234
  ax.set_yticks([0.5, 1.5, 2.5])
235
  ax.set_yticklabels(['Voice', 'Posture', 'Face'], fontsize=6) # Smaller font size
236
  ax.set_xticks([])
 
229
  combined_mse[1] = mse_posture_norm
230
  combined_mse[2] = mse_voice_norm
231
 
232
+ fig, ax = plt.subplots(figsize=(video_width / 25, 1)) # Much thinner height, wider width
233
+ ax.imshow(combined_mse, aspect='auto', cmap='RdGy', vmin=0, vmax=1, extent=[0, total_frames, 0, 3])
234
  ax.set_yticks([0.5, 1.5, 2.5])
235
  ax.set_yticklabels(['Voice', 'Posture', 'Face'], fontsize=6) # Smaller font size
236
  ax.set_xticks([])