PaddlePaddle / PaddlePaddle/FastDeploy
昆仑芯P800推理RetinaNet模型报错
Open
@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)
模型加载和编译都没有问题,但是推理的时候报错:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.