Skip to content

Instantly share code, notes, and snippets.

View rolux's full-sized avatar

rolux

View GitHub Profile
aaron blaise
aaron douglas
aaron horkey
aaron jasinski
aaron mcgruder
aaron siskind
aaron westerberg
abanindranath tagore
abbas kiarostami
abbott fuller graves
# This generates, along with the init latent, a second noise latent.
# Each of these has 16 channels, and the animation below has 16 phases.
# During phase i, the amount of noise in channel i decreases from max to
# 0, while the amount of noise in channel i + 1 increases from 0 to max.
#
# For a render function and video export, see
# https://github.com/rolux/flux-random-walk
prompt = "a horse riding an astronaut"
width, height = 1024, 1024
@rolux
rolux / godard_mieville.py
Created December 7, 2020 08:36
python script, unedited, used to create https://youtu.be/X2ryBq31pHs
from __future__ import division, print_function
import math
from oxmaps import Line, Pano, PanoImage, PanoTile, Point, db
from PIL import Image
ids = [
'eGYyAlN9kvBEg6AYtJV60A',
'CCQWTbDqYokwHNwBWnl8wQ',
'_UBAlMtHNb7hUYpxXkmcCA',
'tBMPwhLVH4Kk8EdQc15-3w',
docstring = '''
backup.py
Time Machine-style backup for external drives.
Usage:
> python3 backup.py "/Volumes/My Drive" "/Volumes/My Backup Drive"
Optional:
> python3 backup.py "/Volumes/My Drive" "/Volumes/My Backup Drive" exclude.txt
'''
YouTube FileStorage v0.0
requires: ffmpeg, youtube-dl
'''
import os
import shutil
import sys
import numpy as np
from scipy.spatial import cKDTree
# git clone https://github.com/NVlabs/stylegan2
import os
import numpy as np
from scipy.interpolate import interp1d
from scipy.io import wavfile
import matplotlib.pyplot as plt
import PIL.Image
import moviepy.editor
import dnnlib