PaddleDetection icon indicating copy to clipboard operation
PaddleDetection copied to clipboard

rtdetr模型在部署推理时报错,而其他模型不会,报错如下:

Open gyx210 opened this issue 1 year ago • 1 comments

问题确认 Search before asking

  • [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

使用官方给出的deploy\python\infer.py进行推理,其他模型都没有问题,但redert有问题,加载模型时报错内存未分配。

File "D:\python\PaddleDetection-v2.7.0\deploy\python\infer.py", line 107, in init self.predictor, self.config = load_predictor( ^^^^^^^^^^^^^^^ File "D:\python\PaddleDetection-v2.7.0\deploy\python\infer.py", line 1060, in load_predictor predictor = create_predictor(config) ^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: (PreconditionNotMet) Tensor's dimension is out of bound.Tensor's dimension must be equal or less than the size of its memory.But received Tensor's dimension is 8, memory's size is 0. [Hint: Expected numel() * SizeOf(dtype()) <= memory_size(), but received numel() * SizeOf(dtype()):8 > memory_size():0.] (at ..\paddle\phi\core\dense_tensor_impl.cc:55) [operator < cast > error]

gyx210 avatar Oct 06 '24 11:10 gyx210

目前PaddleX支持了RT-DETR系列模型的训练、推理、部署等功能,推荐尝试PaddleX使用,具体可参考文档,如遇到任何问题,欢迎继续提问~

https://github.com/PaddlePaddle/PaddleX/blob/release/3.0-beta1/docs/module_usage/tutorials/cv_modules/object_detection.md

TingquanGao avatar Oct 12 '24 02:10 TingquanGao

The issue has no response for a long time and will be closed. You can reopen or new another issue if are still confused.


From Bot

TingquanGao avatar Nov 12 '24 03:11 TingquanGao

请问解决了吗?我也碰到你同样的问题

HuangYongHang1 avatar Dec 16 '24 01:12 HuangYongHang1

请问解决了吗?我也碰到你同样的问题

我也遇到了这个问题

mayun123 avatar Dec 16 '24 07:12 mayun123