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

The cpu usage rate is very high #17

Open
eeric opened this issue Aug 11, 2021 · 3 comments
Open

The cpu usage rate is very high #17

eeric opened this issue Aug 11, 2021 · 3 comments

Comments

@eeric
Copy link

eeric commented Aug 11, 2021

the speed of training is slower, and the cpu usage rate is very high,about 800%, is there anything to solve it?

@eeric
Copy link
Author

eeric commented Aug 11, 2021

@tamerthamoqa ,hi
could you modified your data process by means as following:
torch.utils.data.distributed.DistributedSampler()
https://github.com/deepinsight/insightface/blob/7a84f849f215ec018f9a72879c9845355eb3b9d1/recognition/arcface_torch/dataset.py#L41

@tamerthamoqa
Copy link
Owner

Hello @eeric,

Could you clarify more? Are you fully using CPU because a GPU resource is not available?

The torch.utils.data.distributed.DistributedSampler() or the insightface dataset implementation may provide better peformance with DistributedDataParallel training, but unfortunately I will not be able to test this on my machine anytime soon.

@eeric
Copy link
Author

eeric commented Aug 12, 2021

@tamerthamoqa
fully using CPU, while GPU resource is not available.

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