PaddlePaddle / PaddlePaddle/FastDeploy

昆仑芯P800推理RetinaNet模型报错

Open
#4,403 1 comment 0 reactions 1 assignee View on GitHub

@TBD1 is already working on this.

Since Oct 14, 2025.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

FastDeploy使用的版本是release/1.1.0,retinanet模型版本是retinanet_r50_fpn_1x_coco,部分测试脚本如下:

runtime_option = fd.RuntimeOption()
runtime_option.use_kunlunxin()

if args.model_dir is None:
    model_dir = fd.download_model(name='retinanet')
else:
    model_dir = args.model_dir

model_file = os.path.join(model_dir, "model.pdmodel")
params_file = os.path.join(model_dir, "model.pdiparams")
config_file = os.path.join(model_dir, "infer_cfg.yml")

# settting for runtime
print("RetinaNet model initializing......")
model = fd.vision.detection.RetinaNet(
    model_file, params_file, config_file, runtime_option=runtime_option)

# predict
if args.image_file is None:
    image_file = fd.utils.get_detection_test_image()
else:
    image_file = args.image_file
im = cv2.imread(image_file)

print("predicting......")
result = model.predict(im)
print(result)

模型加载和编译都没有问题,但是推理的时候报错:

Image 看上去发生在paddle-lite里面获取xpu context报错

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.