Giter Club home page Giter Club logo

Comments (4)

jontonsoup avatar jontonsoup commented on September 16, 2024

bump

from clouddream.

 avatar commented on September 16, 2024

The deepdream process is inherently serialized. You have a stack of layers that the image gets fed through. The image goes into layer one, gets processed, then moves on to layer two, gets processed, gets moved to layer three, etc. You can't work on layers 1, 2, 3, and 4 simultaneously, as 4 requires the output from 3, 3 requires the output from 2, and so on. You could work on 4 different images concurrently if you wanted, but I'm not sure that is what you were getting at.

If you did want to work on 4 images concurrently, given that you have 4 cores, you would want multiprocessing, not multithreading, as CPU bound threading in python is gimped due to the GIL.

from clouddream.

jontonsoup avatar jontonsoup commented on September 16, 2024

Thanks-- I implemented multiprocessing already, the problem is I run into memory constraints so it's not great. I read about an alternate caffe build that enabled multi cores, but I haven't explored it yet.

On Mon, Aug 17, 2015 at 6:03 PM, ihaventkilledanybodysince1984
[email protected] wrote:

The deepdream process is inherently serialized. You have a stack of layers that the image gets fed through. The image goes into layer one, gets processed, then moves on to layer two, gets processed, gets moved to layer three, etc. You can't work on layers 1, 2, 3, and 4 simultaneously, as 4 requires the output from 3, 3 requires the output from 2, and so on. You could work on 4 different images concurrently if you wanted, but I'm not sure that is what you were getting at.

If you did want to work on 4 images concurrently, given that you have 4 cores, you would want multiprocessing, not multithreading, as CPU bound threading in python is gimped due to the GIL.

Reply to this email directly or view it on GitHub:
#34 (comment)

from clouddream.

StevenGann avatar StevenGann commented on September 16, 2024

"Too bad there isn't some API that could distribute workload across GPU processors and do the same thing on CPUs depending on what was available"

I'm no expert, but I believe both CUDA and OpenCL are capable of this. I believe OpenCL can even manage it by default.

from clouddream.

Related Issues (20)

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.