Skip to content

Commit

Permalink
Fix bug in subsample.py. Thank you to @Guangyun-Xu for finding this bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharatan committed Jun 11, 2024
1 parent 19ac72b commit cff9450
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flowmap/subsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def subsample_frames(

# Compute the mean flows.
mean_flows.append(flow_predictor.forward(videos).norm(dim=-1).mean().item())
last = current

flow_step = sum(mean_flows) / target_num_frames
remaining = 0
Expand Down

0 comments on commit cff9450

Please sign in to comment.