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

How can I speed up the training for 3D derenderer? #7

Closed
czsc123 opened this issue Aug 28, 2019 · 6 comments
Closed

How can I speed up the training for 3D derenderer? #7

czsc123 opened this issue Aug 28, 2019 · 6 comments

Comments

@czsc123
Copy link

czsc123 commented Aug 28, 2019

The training for 3D derenderer is very slow. It maybe need two months or more.How can I speed up the training?

@ysymyth
Copy link
Owner

ysymyth commented Aug 28, 2019

Could you please share more info, like what hardware you're using?

@czsc123
Copy link
Author

czsc123 commented Aug 28, 2019

WechatIMG4
the picture is about the hardware I use.
when pretrain , I use the command : CUDA_VISIBLE_DEVICES=4,6 python geometric/scripts/main.py --do train --dataset vkitti --mode pretrain --num_epochs 256 --batch_size 128 --lr 1e-3 --lr_decay_epochs 16 --lr_decay_rate 0.5 --working_dir_root ./models --name vkitti-geometric-derender3d-pretrain --image_size 128 --render_size 192

@czsc123
Copy link
Author

czsc123 commented Aug 28, 2019

I use NVIDIA TeslaV100. It has 8 GPU, 16G per GPU graphics card. GPU driver version is 396.26.
WechatIMG4

@stmharry
Copy link

Hi @czsc123,

From the command you are running, it seems like you are pre-training the model with MSE losses and rendering is not required. I suggest you make sure the CPU usage is not capped (htop command) while you are training as pytorch can be quite input-bound. Also it would be great to provide a snapshot while training where we can see estimated time for completion.

@czsc123
Copy link
Author

czsc123 commented Sep 2, 2019

@stmharry Thank you for your suggestions. I will try it.

@czsc123
Copy link
Author

czsc123 commented Sep 19, 2019

Hello @stmharry,

I have tried to install htop command. But I don't have root permission to install it. I can only use top command. So can I use top command to make sure the CPU usage is not capped? And what operation should I do to make sure the CPU usage is not capped?
Please pardon me as I am new to these operations. I google your suggestions but I can't find suitable answers.

@ysymyth ysymyth closed this as completed May 7, 2020
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