Update visualization.py
Browse files- visualization.py +3 -3
visualization.py
CHANGED
@@ -235,11 +235,11 @@ def create_video_with_heatmap(video_path, df, mse_embeddings, mse_posture, outpu
|
|
235 |
|
236 |
# Custom colormap definition
|
237 |
cdict = {
|
238 |
-
'red': [(0.0, 0.
|
239 |
(1.0, 1.0, 1.0)], # High MSE: Full red
|
240 |
-
'green': [(0.0,
|
241 |
(1.0, 0.0, 0.0)], # High MSE: No green
|
242 |
-
'blue': [(0.0,
|
243 |
(1.0, 0.0, 0.0)] # High MSE: No blue
|
244 |
}
|
245 |
|
|
|
235 |
|
236 |
# Custom colormap definition
|
237 |
cdict = {
|
238 |
+
'red': [(0.0, 0.5, 0.5), # Low MSE: 50% red (gray)
|
239 |
(1.0, 1.0, 1.0)], # High MSE: Full red
|
240 |
+
'green': [(0.0, 0.5, 0.5), # Low MSE: 50% green (gray)
|
241 |
(1.0, 0.0, 0.0)], # High MSE: No green
|
242 |
+
'blue': [(0.0, 0.5, 0.5), # Low MSE: 50% blue (gray)
|
243 |
(1.0, 0.0, 0.0)] # High MSE: No blue
|
244 |
}
|
245 |
|