Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.


fix(encoder): fix bug in video mixture encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Aug 1, 2019
1 parent 3fdf1c0 commit 95f03c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/encoder/video/
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def encode(self, videos: List['np.ndarray'], *args, **kwargs) -> np.ndarray:
ret = []
v_len = [len(v) for v in videos]
pos_start = [0] + [sum(v_len[:i]) for i in range(1, len(v_len)-1)]
pos_end = [sum(v_len[:i]) for i in range(1, len(v_len))]
pos_end = [sum(v_len[:i]) for i in range(len(v_len))]
max_len = min(max(v_len), self.max_frames)

img = [im for v in videos for im in v]
Expand Down

0 comments on commit 95f03c5

Please sign in to comment.