Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
refactor(preprocessor): add init, change signiture
  • Loading branch information
jemmyshin committed Aug 26, 2019
1 parent 293d80e commit 7493af9779093742d0e9fd16df6681366666539c
Showing with 2 additions and 2 deletions.
  1. +1 −1 gnes/preprocessor/helper.py
  2. 0 gnes/preprocessor/io_utils/__init__.py
  3. +1 −1 gnes/preprocessor/io_utils/gif.py
@@ -135,7 +135,7 @@ def split_video_frames(buffer_data: bytes,
return [np.array(Image.open(io.BytesIO(chunk))) for chunk in chunks]


def get_gif(images, fps=4):
def get_gif(images: 'np.ndarray', fps=10):
cmd = ['ffmpeg', '-y',
'-f', 'rawvideo',
'-vcodec', 'rawvideo',
Empty file.
@@ -47,7 +47,7 @@ def decode_gif(data: bytes, fps: int = -1,


def encode_gif(
images: List[np.ndarray],
images: np.ndarray,
scale: str,
fps: int,
pix_fmt: str = 'rgb24'):

0 comments on commit 7493af9

Please sign in to comment.