Update visualization.py
Browse files- visualization.py +3 -3
visualization.py
CHANGED
@@ -226,9 +226,9 @@ def create_heatmap(t, mse_embeddings, mse_posture, mse_voice, video_fps, total_f
|
|
226 |
mse_voice_norm = (mse_voice - np.min(mse_voice)) / (np.max(mse_voice) - np.min(mse_voice))
|
227 |
|
228 |
combined_mse = np.zeros((3, total_frames))
|
229 |
-
combined_mse[0] =
|
230 |
-
combined_mse[1] =
|
231 |
-
combined_mse[2] =
|
232 |
|
233 |
fig, ax = plt.subplots(figsize=(video_width / 300, 0.4))
|
234 |
ax.imshow(combined_mse, aspect='auto', cmap='Reds', vmin=0, vmax=1, extent=[0, total_frames, 0, 3])
|
|
|
226 |
mse_voice_norm = (mse_voice - np.min(mse_voice)) / (np.max(mse_voice) - np.min(mse_voice))
|
227 |
|
228 |
combined_mse = np.zeros((3, total_frames))
|
229 |
+
combined_mse[0] = mse_embeddings
|
230 |
+
combined_mse[1] = mse_posture
|
231 |
+
combined_mse[2] = mse_voice
|
232 |
|
233 |
fig, ax = plt.subplots(figsize=(video_width / 300, 0.4))
|
234 |
ax.imshow(combined_mse, aspect='auto', cmap='Reds', vmin=0, vmax=1, extent=[0, total_frames, 0, 3])
|