This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PImage myImage; | |
void setup() | |
{ | |
size(500,500); | |
myImage = loadImage("test.png"); | |
} | |
void draw() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DreamImage.py - parameterized deepdream with support for multiple models, | |
# auto-image-scaling, guided dreaming and kaleido mode (self-guided). | |
# Jim Bumgardner 7-12-15 | |
# this assumes the deploy file is called 'deploy.prototxt' - you may need | |
# to rename it if using a different model such as googlenet_places205. | |
# sample invocations that produce nice results: | |
# python dreamImage.py -i $1.jpg -model ../../caffe/models/googlenet_places205 -end inception_3a/output -iter 20 -octaves 5 -o $1_m3a.jpg | |
# python dreamImage.py -i $1.jpg -model ../../caffe/models/googlenet_places205 -end inception_3b/output -iter 20 -octaves 5 -o $1_m3b.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Incremental Drift on 32x32 grid - Jim Bumgardner | |
// | |
int nbrPoints = 1024; | |
int cx,cy; | |
float crad; | |
float cycleLength, speed; | |
int startOffset = 0; | |
int counter =0 ; | |
boolean isSquare = true; |
NewerOlder