reab5555 commited on
Commit
c48b3e6
·
verified ·
1 Parent(s): 9130830

Update visualization.py

Browse files
Files changed (1) hide show
  1. visualization.py +2 -2
visualization.py CHANGED
@@ -230,10 +230,10 @@ 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, 2))
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(['Face', 'Posture', 'Voice'])
237
  ax.set_xticks([])
238
 
239
  ax.axvline(x=frame_count, color='blue', linewidth=2)
 
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)