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

training with one GPU #73

Open
wo0423 opened this issue Oct 17, 2022 · 4 comments
Open

training with one GPU #73

wo0423 opened this issue Oct 17, 2022 · 4 comments

Comments

@wo0423
Copy link

wo0423 commented Oct 17, 2022

excuse me,i want to know how to train with only one GPU, can you help me? thanks a lot.

@charlesCXK
Copy link
Owner

Hi, we highly recommend using 4 or 8 GPUs to train the model, since the performance is very sensitive to the batch size.

To train with one GPU, you could set a smaller batch size and linearly reduce the learning rate.

@wo0423
Copy link
Author

wo0423 commented Oct 18, 2022

got it, due to limited conditions, I only have one GPU at my disposal, very appreciate for your patient reply!

@wo0423 wo0423 closed this as completed Oct 18, 2022
@wo0423 wo0423 reopened this Nov 2, 2022
@wo0423
Copy link
Author

wo0423 commented Nov 2, 2022

Hello,i’m sorry to bother you again,there is a problem that has puzzled me for a long time. I really can't figure out where to correct it.I trained with one gpu. I made the following modifications to the code(train.py):
image
and
image
and
image
and
image
The problem is that my training results are poor.I don't know what the problem is.

@XieZhiyao21
Copy link

do you solve this problem?i want to know how to deal with that too.

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