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

about gpu usage #20

Closed
DRosemei opened this issue Sep 29, 2021 · 2 comments
Closed

about gpu usage #20

DRosemei opened this issue Sep 29, 2021 · 2 comments

Comments

@DRosemei
Copy link

for i in ids:

In this line, you backward gradient per image, so I guess it will consume more GPU resources when compute all gradients. I want to know how much GPU memory do you use in your practice. Thanks in advance!

@ziruiw-dev
Copy link
Collaborator

Hi @DRosemei,

Yes we backward gradient per image, but I am not sure I understand why it consumes more GPU when computing all gradients? During training, we randomly sample 1024 pixels for each image so the GPU memory usage is only about 2-3GB if I remember correctly.

Best,
Zirui

@DRosemei
Copy link
Author

Thanks for your reply:)

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

2 participants