start new:
tmux
start new with session name:
tmux new -s myname
import cv2 | |
import numpy as np | |
import random | |
from scipy.stats import norm | |
def generate_spot_light_mask(mask_size, | |
position=None, | |
max_brightness=255, | |
min_brightness=0, | |
mode="gaussian", |
''' | |
Using OpenCV takes a mp4 video and produces a number of images. | |
Requirements | |
---- | |
You require OpenCV 3.2 to be installed. | |
Run | |
---- | |
Open the main.py and edit the path to the video. Then run: |
from PIL import Image | |
import sys | |
import os | |
import math | |
import numpy as np | |
########################################################################################### | |
# script to generate moving mnist video dataset (frame by frame) as described in | |
# [1] arXiv:1502.04681 - Unsupervised Learning of Video Representations Using LSTMs | |
# Srivastava et al |
As configured in my dotfiles.
start new:
tmux
start new with session name: