Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
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]
问题确认 Search before asking
请提出你的问题 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]