Skip to content

Instantly share code, notes, and snippets.

View OverStruck's full-sized avatar
💭
I may be slow to respond.

Juan OverStruck

💭
I may be slow to respond.
  • AWS
  • Washington, USA
View GitHub Profile
@OverStruck
OverStruck / .bashrc
Created September 26, 2019 01:49 — forked from rickdaalhuizen90/.bashrc
Parrot Os bash theme for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
input_img = PIL.Image.open('/home/niklas/interstellar/0465.png')
output_img = input_img
for i in xrange(465, 1100):
old_input_img = input_img
input_img = PIL.Image.open('/home/niklas/interstellar/%04d.png' % i)
output_img = Image.composite(output_img, input_img, ImageEnhance.Brightness(ImageOps.grayscale(compare_images(old_input_img, input_img, 10))).enhance(0.1))
frame = deepdream(net, np.float32(output_img), end='pool5', iter_n=10, octave_n=2)
output_img = PIL.Image.fromarray(np.uint8(frame))
output_img.save('/home/niklas/interstellar/out/%04d.png' % i)