Comments (4)
bump
from clouddream.
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.
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.
"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)
- Add a better way of pushing images to the server. HOT 8
- Add a way to generate 30fps videos. HOT 3
- Only works on some input images HOT 3
- GPU support? HOT 1
- Errors running youtube.sh HOT 10
- Docs for using clouddream locally with boot2docker? HOT 8
- How to Continue Iterations HOT 1
- Conversion failed - boot2docker + youtube.sh HOT 1
- Is it possible to do guided dreams in this build ? HOT 2
- Consider adding instructions on how to increase boot2docker memory limit HOT 2
- root password on scp image upload HOT 2
- Adding models to the docker container HOT 1
- Add link to gallery of example outputs HOT 1
- My fork might be of interest HOT 3
- AWS IP Does not show images or video.
- Youtube Video Processing Does Not Work? HOT 4
- when try to stop get an error:
- Followed digitalocean instructions, getting No such file or directory
- get it running on Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clouddream.