nikkar commited on
Commit
23c0323
·
verified ·
1 Parent(s): 50d7cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -395,7 +395,7 @@ def track(
395
  colors.extend(frame_colors)
396
  colors = np.array(colors)
397
 
398
- pred_tracks = torch.cat([pred_tracks[:,:1],(pred_tracks[:,:-2] + pred_tracks[:,1:-1] + pred_tracks[:,2:])/ 3, pred_tracks[:,-1:]],dim=1)
399
  # torch.cat([pred_tracks[:,:1],pred_tracks[:,1:]],dim=1)
400
  pred_tracks = (pred_tracks * torch.tensor([video_preview.shape[2], video_preview.shape[1]]).to(device) / torch.tensor([VIDEO_INPUT_RESO[1], VIDEO_INPUT_RESO[0]]).to(device))
401
 
 
395
  colors.extend(frame_colors)
396
  colors = np.array(colors)
397
 
398
+ # pred_tracks = torch.cat([pred_tracks[:,:1],(pred_tracks[:,:-2] + pred_tracks[:,1:-1] + pred_tracks[:,2:])/ 3, pred_tracks[:,-1:]],dim=1)
399
  # torch.cat([pred_tracks[:,:1],pred_tracks[:,1:]],dim=1)
400
  pred_tracks = (pred_tracks * torch.tensor([video_preview.shape[2], video_preview.shape[1]]).to(device) / torch.tensor([VIDEO_INPUT_RESO[1], VIDEO_INPUT_RESO[0]]).to(device))
401