Skip to content

Commit

Permalink
repaired the bug of sampling interval
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiJin1995 committed Oct 28, 2017
1 parent b350a10 commit 5717ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action_python/VideoTemporalPredictionTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def VideoTemporalPrediction(

# selection
# step = int(math.floor((duration-optical_flow_frames+1)/num_samples)) #original
step = int(math.floor((duration-optical_flow_frames+1-1)/num_samples-1)) #modified
step = int(math.floor((duration-optical_flow_frames+1-1)/(num_samples-1))) #modified
dims = (256,340,optical_flow_frames*2,num_samples)
flow = np.zeros(shape=dims, dtype=np.float64)
flow_flip = np.zeros(shape=dims, dtype=np.float64)
Expand Down

0 comments on commit 5717ccc

Please sign in to comment.