From 5717ccc293915ca5302d8196df7113abe225b3cc Mon Sep 17 00:00:00 2001 From: KaiJin <463163199@qq.com> Date: Sat, 28 Oct 2017 11:44:13 +0800 Subject: [PATCH] repaired the bug of sampling interval --- action_python/VideoTemporalPredictionTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action_python/VideoTemporalPredictionTest.py b/action_python/VideoTemporalPredictionTest.py index c66989c..301e260 100755 --- a/action_python/VideoTemporalPredictionTest.py +++ b/action_python/VideoTemporalPredictionTest.py @@ -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)