-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[PaddlePaddle Hackathon] Task 70: Add DALI GPU processing for PP-YOLO training #4546
Conversation
…esize, flip, expand and crop operations
… removing requirement of all samples shape in one batch need be same)
… setting resize size from outer code
…RandomFlip, RandomDistort, NormalizeImage and Permute operations
Set use_dali for all batch_transforms. Apply batch transforms after loading data from DALI pipeline. Convert image loaded from DALI pipeline to paddle Tensor.
训练速度这块有测过对比嘛 |
抱歉,刚看到消息。。 我的测试环境是这样的
在batch size 6的时候, 使用DALI时GPU显存占用比不使用DALI多了大约2G,再继续提高batch size就显存不足了。。 根据上面的信息,估计到batch size>10,cpu可能就会满载了(batch size为6时,GPU还没有满载) |
这个结果的意思是 加了DALI变慢了嘛😂 |
就是batch size变大使用DALI可能会提高速度,我试试看能不能在AI Studio上运行吧,用32G的显存。我本地的显存12G使用DALI时,batch size最大只能到6.. |
Automatically closed by Paddle-bot. |
PR types
New features
PR changes
APIs
Describe
Hi,
This PR adds DALI processing for PP-YOLO training according to Task #4221
Changing COCODataSet to DALICOCODataSet in configuration file configs/datasets/coco_detection.yml will enable DALI preprocessing.
e.g.
And the training command is same as before
Thanks,