Skip to content

Instantly share code, notes, and snippets.

@derhuerst
Created August 28, 2016 11:41
Show Gist options
  • Save derhuerst/312b06601b2eb026a96f9a8f4f71e068 to your computer and use it in GitHub Desktop.
Save derhuerst/312b06601b2eb026a96f9a8f4f71e068 to your computer and use it in GitHub Desktop.
abbey road meets deep dream
  • Linux system with >=4GB RAM and Docker installed.
  • git clone https://github.com/ryankennedyio/deep-dream-generator.git
  • `docker run -d -p 8888:8888 -e PASSWORD=foo -v /root/deep-dream-generator:/src ryankennedyio/deepdream
  • docker ps -> copy container id
  • docker exec -it <container> bash
    • cd /src
    • rm input.jpg
    • wget -O input.jpg 'http://d817ypd61vbww.cloudfront.net/sites/default/files/styles/media_responsive_widest/public/tile/image/AbbeyRoad.jpg'
  • open https://<hostname>:8888/, pass self-signed certificate warning, enter password
  • open the dream.ipynb IPython Notebook
  • almost at the bottom, replace _=deepdream(net, img) with one of the following
    • _=deepdream(net, img, octave_scale=2, end='inception_3a/5x5_reduce')
    • _=deepdream(net, img, octave_scale=2, end='inception_3b/5x5_reduce')
    • _=deepdream(net, img, octave_scale=2, end='inception_4a/5x5_reduce')
    • _=deepdream(net, img, octave_scale=2, end='inception_3c/5x5_reduce')
  • "Cell" > "Run All Above"
  • "Cell" > "Run Cell"
  • wait for ~30m
@derhuerst
Copy link
Author

final1
final2
final3
final4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment