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

Inference on CPU for models with Deformable conv layer #2103

Open
grovPri opened this issue Oct 5, 2020 · 6 comments
Open

Inference on CPU for models with Deformable conv layer #2103

grovPri opened this issue Oct 5, 2020 · 6 comments
Labels
enhancement Improvements or good new features

Comments

@grovPri
Copy link

grovPri commented Oct 5, 2020

A model is trained with the config: Misc/cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv.yaml
For inference I would like to use CPU, but it complains:
NotImplementedError("Deformable Conv is not supported on CPUs!")

Would this support be included in future to run Deformable Conv on CPU?

@ppwwyyxx ppwwyyxx added the enhancement Improvements or good new features label Oct 5, 2020
@ppwwyyxx
Copy link
Contributor

ppwwyyxx commented Oct 5, 2020

We don't have plans to support this at the moment.

@MathijsNL
Copy link

Is there a specific reason you want to run on CPU instead of GPU?

@grovPri
Copy link
Author

grovPri commented Oct 14, 2020

I would like to use multiple models simultaneously to get predictions and my GPU memory is not large enough to accommodate all of them. Do you have any advice on how to achieve that (preferably cost efficient)?

@MathijsNL
Copy link

Using multiple models simultaneously on CPU will give really bad inference times anyway.

What you could do is run each model in sequence and free up your resources before loading the other model.

Also have you already looked at how much GPU memory is used for 1 model when running inference? I can easily run 3 models and probably 4 for MaskRCNN on a single GTX1080.

@PurveshChhajed

This comment has been minimized.

@ppwwyyxx
Copy link
Contributor

@PurveshChhajed Your question was answered in #2180 and please refrain from commenting on unrelated issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or good new features
Projects
None yet
Development

No branches or pull requests

4 participants