Replies: 2 comments
-
可以详细说说遇到的问题吗 |
Beta Was this translation helpful? Give feedback.
0 replies
-
根据你的描述和提供的错误信息, 问题分析
解决方案1. 检查输入的形状和大小
2. 调整过滤逻辑
3. 减小批次大小
4. 数据裁剪和填充
5. 调试显存分配
6. 检查 GPU 分配
7. 更新 PaddleOCR
总结
如果问题仍未解决,可以在 PaddleOCR Issues #14087 中提供更多信息,寻求社区帮助! Response generated by feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🔎 Search before asking
🐛 Bug (问题描述)
Traceback (most recent call last):
File "/data/PaddleOCR/PaddleOCR-2.8.1/tools/train.py", line 292, in
main(config, device, logger, vdl_writer, seed)
File "/data/PaddleOCR/PaddleOCR-2.8.1/tools/train.py", line 221, in main
lwf_program.train(
File "/data/PaddleOCR/PaddleOCR-2.8.1/tools/LwF_program.py", line 357, in train
loss = loss_class(preds, batch)
File "/home/server/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, **kwargs)
File "/data/PaddleOCR/PaddleOCR-2.8.1/ppocr/losses/rec_multi_loss.py", line 53, in forward
loss_func(predicts["ctc"], [batch[:2] + batch[3:], predicts["preds_distill"]["ctc"]])["loss"]
File "/home/server/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, **kwargs)
File "/data/PaddleOCR/PaddleOCR-2.8.1/ppocr/losses/rec_ctc_loss.py", line 63, in forward
ctc_loss = self.loss_func.forward(predicts, batch[0])
File "/data/PaddleOCR/PaddleOCR-2.8.1/ppocr/losses/rec_ctc_loss.py", line 92, in forward
loss = self.loss_func(predicts, labels, preds_lengths, label_lengths)
File "/home/server/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, **kwargs)
File "/home/server/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/nn/layer/loss.py", line 1261, in forward
return paddle.nn.functional.ctc_loss(
File "/home/server/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/nn/functional/loss.py", line 1940, in ctc_loss
loss_out = warpctc(
File "/home/server/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/nn/functional/loss.py", line 1901, in warpctc
loss_out = _C_ops.warpctc(
MemoryError: (ResourceExhausted) Fail to alloc memory of 559140344358520 size, error code is 12.
[Hint: Expected error == 0, but received error:12 != 0:0.] (at ../paddle/fluid/memory/allocation/cpu_allocator.cc:50)
🏃♂️ Environment (运行环境)
Linux CentOS 3090 x4 paddleocr 2.8.1
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
Beta Was this translation helpful? Give feedback.
All reactions