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

sampler: name: MultiScaleSampler scales: [[320, 32], [320, 48], [320, 64]] 这个64高度会不会是造成爆显存的原因?64改成24之类的高度有什么问题吗? #78

Open
nissansz opened this issue Jan 6, 2025 · 2 comments

Comments

@nissansz
Copy link

nissansz commented Jan 6, 2025

sampler: name: MultiScaleSampler scales: [[320, 32], [320, 48], [320, 64]] 这个64高度会不会是造成爆显存的原因?64改成24之类的高度有什么问题吗?

64高度
[2024/12/29 21:06:27] ppocr INFO: epoch: [1/5], global_step: 26600, lr: 0.000002, CTCLoss: 12.595758, NRTRLoss: 2.748089, loss: 15.519665, avg_reader_cost: 0.00189 s, avg_batch_cost: 0.14987 s, avg_samples: 1.32, ips: 8.80787 samples/s, eta: 29 days, 14:40:47, max_mem_reserved: 1952 MB, max_mem_allocated: 1756 MB

64换成24高度
[2025/01/06 08:02:12] ppocr INFO: epoch: [1/50], global_step: 600, lr: 0.000000, CTCLoss: 33.865753, NRTRLoss: 4.422851, loss: 38.640900, avg_reader_cost: 0.00187 s, avg_batch_cost: 0.18453 s, avg_samples: 2.43, ips: 13.16867 samples/s, eta: 204 days, 1:23:32, max_mem_reserved: 2065 MB, max_mem_allocated: 1814 MB

@Topdu
Copy link
Owner

Topdu commented Jan 18, 2025

There is no clear-cut answer to this issue, and there are different answers in different scenarios, which require ablation experiments to verify which setup is more effective.

@nissansz
Copy link
Author

Is it possible to remove warmup epoch setting?
How to set without warmup epoch?

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