Coder Social home page Coder Social logo

deepdream_highres's Introduction

Highres Deepdream

The size/resolution limitation of the original deepdream Caffe implementation made deep dreaming large photos tricky. However, the offical Google Deepdream example that comes with Tensorflow by Alex Mordvintsev, doesnt suffer from those limitations. However it only came as a IPython notebook, so here's a little commandline app based on Alex's notebook for just applying deepdream to large images in bulk.

Install Requirements:

  • Python 2.7
  • TensorFlow (>=r0.7)
  • NumPy

Download pretrained Inception V5 from here: https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip

Run deepdream like this: python deepdream.py --input mymegapixelimage.jpg --output output.jpg --layer import/mixed5a_5x5_pre_relu --frames 7 --octaves 10 --iterations 10

Or create a zoom-in series like so:

python deepdream.py --input mystart.jpg --output output.jpg --layer import/mixed4d_3x3 --frames 100 --frame_scale 1.4 --frame_crop --octaves 4 --iterations 10

For help & options: python deepdream.py --help

deepdream_highres's People

Contributors

mtyka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

deepdream_highres's Issues

How fast is it supposed to run on GPU?

Hi, I am just trying to find out whether my setup is messed up or if everything is working as intended.

I am running Ubuntu 16.04, CUDA 9.0 and cudNN 7.04 on Tensorflow 1.5.

Both CPU and GPU are utilized, I am seeing around 10% GPU usage and 100% CPU. A 720p image with your endless zoom parameters takes around 45 seconds.

Everything that has to do with layers of the convnet is reported as running on CPU:
I tensorflow/core/common_runtime/placer.cc:874] import/conv2d0_w: (Const)/job:localhost/replica:0/task:0/device:CPU:0

Everything else is reported as running on GPU.

Is that just how it is or can I run everything on GPU? Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.