Spaces:
Runtime error
Runtime error
Update visualization.py
Browse files- 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 /
|
| 234 |
-
ax.imshow(combined_mse, aspect='auto', cmap='
|
| 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='
|
| 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()
|