reab5555 commited on
Commit
0b9bf9e
·
verified ·
1 Parent(s): 1ca7095

Update visualization.py

Browse files
Files changed (1) hide show
  1. 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.0, 0.0), # Low MSE: No red
239
  (1.0, 1.0, 1.0)], # High MSE: Full red
240
- 'green': [(0.0, 1.0, 1.0), # Low MSE: Full green
241
  (1.0, 0.0, 0.0)], # High MSE: No green
242
- 'blue': [(0.0, 1.0, 1.0), # Low MSE: Full blue
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