I hereby claim:
- I am krismatson on github.
- I am krismatson (https://keybase.io/krismatson) on keybase.
- I have a public key ASAKMDqTUdFcLJU8F9pIjU8m76eP4hRI0McPmHi7Oen1dgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import cv2 | |
def video_to_frames(video_filename): | |
"""Extract frames from video""" | |
cap = cv2.VideoCapture(video_filename) | |
video_length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) - 1 | |
frames = [] | |
if cap.isOpened() and video_length > 0: | |
frame_ids = [0] | |
if video_length >= 4: |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |