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

Either training or testing is too slow. How to speed up? #93

Open
MurrayC7 opened this issue Sep 4, 2020 · 5 comments
Open

Either training or testing is too slow. How to speed up? #93

MurrayC7 opened this issue Sep 4, 2020 · 5 comments

Comments

@MurrayC7
Copy link

MurrayC7 commented Sep 4, 2020

Hello!
When finetuning on my own dataset with the pre-trained GANet_deep model as "sceneflow_epoch_10.pth", the training is too slow as 10s a step for 16 batchsize on 4 1080ti. Also, evaluating (using the code "evaluate.py") on SceneFlow test set with the same pre-trained model costs 6s for a 576x960 image. This time-consuming is much bigger than that stated in the paper.

By the way, is there any approach to speed up this PyTorch code?
Thanks a million!

@oliverxudd
Copy link

You can try fixing all the layers but the last few layers. I think the feature extraction module and cost aggregation layer can stay as they are.

@MurrayC7
Copy link
Author

MurrayC7 commented Sep 5, 2020

@oliverxudd The case that all the layers are fixed is actually like the evaluation process, isn't it? As I found, it also costs 6s for a 576x960 image.

@MurrayC7
Copy link
Author

MurrayC7 commented Sep 5, 2020

I have looked up #47 #53 , which discuss the similar problem of this code about its time-consuming. But I am still looking forward to fixing it. As the author said, I could try reducing the redundant computation in the code from "libs/" though, these CUDA code is a bit complicated for me. :(

@oliverxudd
Copy link

6 sec for a 576x960 image? that is way too slow....
couldn't help you because I, also know little about cuda code.

@Diksha-Moolchandani
Copy link

I am also experiencing the same problem. I am using the pretrianed model and using predict.py for a 576x960 image. It takes 5-6 sec. Any idea how to speed up?

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