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

Commit

Permalink
refactor(preprocessor): add init, change signiture
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Aug 26, 2019
1 parent 293d80e commit 7493af9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnes/preprocessor/helper.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def split_video_frames(buffer_data: bytes,
return [np.array(Image.open(io.BytesIO(chunk))) for chunk in chunks] 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', cmd = ['ffmpeg', '-y',
'-f', 'rawvideo', '-f', 'rawvideo',
'-vcodec', 'rawvideo', '-vcodec', 'rawvideo',
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion gnes/preprocessor/io_utils/gif.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def decode_gif(data: bytes, fps: int = -1,




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

0 comments on commit 7493af9

Please sign in to comment.