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

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

Open
1 task done
gyx210 opened this issue Oct 6, 2024 · 1 comment
Open
1 task done
Assignees

Comments

@gyx210
Copy link

gyx210 commented Oct 6, 2024

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。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 gyx210 changed the title redert模型在部署推理时报错,而其他模型不会,报错如下: rtdetr模型在部署推理时报错,而其他模型不会,报错如下: Oct 6, 2024
@TingquanGao TingquanGao self-assigned this Oct 6, 2024
@TingquanGao
Copy link
Collaborator

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

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

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

3 participants