Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating images takes 15 minutes #47

Closed
vermapratyush opened this issue Aug 26, 2016 · 3 comments
Closed

Generating images takes 15 minutes #47

vermapratyush opened this issue Aug 26, 2016 · 3 comments

Comments

@vermapratyush
Copy link
Contributor

vermapratyush commented Aug 26, 2016

On AWS machine (g2.2xlarge), I am trying to generate an image based on the model.
The command I execute is:

Testing - Takes around 15 minutes
python generate.py sample_images/tubingen.jpg -m models/composition.model -o sample_images/output.jpg

I haven't used MS-COCO anywhere as I am using the existing model.
From what I read in README, this should take ~1 second, however it takes 15 minutes.

Here are the steps that I followed (nothing new, just followed the readme):

  1. Git Clone
  2. Setup model "sh setup_model.sh"
  3. Generate image.
@mxchinegod
Copy link

mxchinegod commented Aug 26, 2016

On a Titan X it takes 1 second. This is a far superior card to what Amazon has available. Their cards are 2 generations old and have 1/3rd of the graphics memory. The GPU instances on AWS are their most limited, but I've been talking to them and they're working on it.

Not sure if you should be waiting 15 minutes but unfortunately if the code it working and it says CUDA is running, I don't know why that could be.

@markzhong88
Copy link

try add -g 0?

vermapratyush added a commit to vermapratyush/chainer-fast-neuralstyle that referenced this issue Aug 27, 2016
Added GPU flag in README.
Fixed yusuketomoto#47
@vermapratyush
Copy link
Contributor Author

vermapratyush commented Aug 27, 2016

Adding -g to the generate.py worked. Thanks @markz-nyc
However, it gave 'cudaErrorMemoryAllocation: out of memory'. With a smaller image it worked fine as mentioned in #3
When AWS upgrade their instances hopefully it will be much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants