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

CPU usage exceeding 60 GB when running model.predict on single image #20

Closed
ranti-iitg opened this issue Aug 22, 2018 · 4 comments
Closed

Comments

@ranti-iitg
Copy link

running this
outputs = model.predict_on_batch(np.expand_dims(image, axis=0)),
where model is
resnet50_coco_v0.1.0.h5

on a GPU enabled device consumes more than 60 GB of RAM, after that machine freezes.

  1. Device is GPU enabled.
  2. Batch size is 1.
@vcarpani
Copy link
Contributor

Can you give us more information: how many classes (and their indices in class files), dimension of the images

@ranti-orbital
Copy link

I am just following this notebook with the same image. https://github.com/fizyr/keras-maskrcnn/blob/master/examples/ResNet50MaskRCNN.ipynb

@hgaiser
Copy link
Contributor

hgaiser commented Oct 16, 2018

There was an inefficiency in the architecture, should be fixed by #34

Could you try that to see if it resolves your issue?

@ranti-iitg
Copy link
Author

@hgaiser yup it works, thanks

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

4 participants