dylan-plummer commited on
Commit
eb9115f
·
1 Parent(s): f80d9b2

fix event logits

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -89,9 +89,9 @@ def inference(x, count_only_api, api_key, img_size=192, seq_len=64, stride_lengt
89
  period_lengths = np.zeros(len(all_frames) + seq_len + stride_length)
90
  periodicities = np.zeros(len(all_frames) + seq_len + stride_length)
91
  full_marks = np.zeros(len(all_frames) + seq_len + stride_length)
92
- event_type_logits = np.zeros((len(all_frames) + seq_len + stride_length, 4))
93
  period_length_overlaps = np.zeros(len(all_frames) + seq_len + stride_length)
94
- event_type_logit_overlaps = np.zeros((len(all_frames) + seq_len + stride_length, 4))
95
  for _ in range(seq_len + stride_length): # pad full sequence
96
  all_frames.append(all_frames[-1])
97
  batch_list = []
@@ -283,7 +283,7 @@ def inference(x, count_only_api, api_key, img_size=192, seq_len=64, stride_lengt
283
 
284
  # make a bar plot of the event type distribution
285
 
286
- bar = px.bar(x=['single rope speed', 'double dutch', 'double unders', 'single bounce'],
287
  y=event_type_probs,
288
  template="plotly_dark",
289
  title="Event Type Distribution",
 
89
  period_lengths = np.zeros(len(all_frames) + seq_len + stride_length)
90
  periodicities = np.zeros(len(all_frames) + seq_len + stride_length)
91
  full_marks = np.zeros(len(all_frames) + seq_len + stride_length)
92
+ event_type_logits = np.zeros((len(all_frames) + seq_len + stride_length, 6))
93
  period_length_overlaps = np.zeros(len(all_frames) + seq_len + stride_length)
94
+ event_type_logit_overlaps = np.zeros((len(all_frames) + seq_len + stride_length, 6))
95
  for _ in range(seq_len + stride_length): # pad full sequence
96
  all_frames.append(all_frames[-1])
97
  batch_list = []
 
283
 
284
  # make a bar plot of the event type distribution
285
 
286
+ bar = px.bar(x=['single rope speed', 'double dutch', 'double unders', 'single bounce', 'double bounce', 'triple under', 'other'],
287
  y=event_type_probs,
288
  template="plotly_dark",
289
  title="Event Type Distribution",