Skip to content

建议在 rtdetr_paddle/README_cn.md 文件中增加使用 XPU 的说明 #643

@GrootLiu

Description

@GrootLiu

目前的文档中的内容都是针对 NVIDIA GPU的,针对 XPU 来说,需要做些小修改才能正确执行。

比如要修改 configs/runtime.yml 文件:

--- RT-DETR/rtdetr_paddle/configs/runtime.yml   2025-11-04 17:40:27.129655502 +0800
+++ RT-DETR/rtdetr_paddle/configs/runtime.yml.bk        2025-11-04 17:40:17.669193928 +0800
@@ -1,5 +1,5 @@
-use_gpu: false
-use_xpu: true
+use_gpu: true
+use_xpu: false
 use_mlu: false
 use_npu: false
 log_iter: 20

比如要修改 requirements.txt 文件:

--- RT-DETR/rtdetr_paddle/requirements.txt   2025-11-04 17:40:27.129655502 +0800
+++ RT-DETR/rtdetr_paddle/configs/requirements.txt.bk        2025-11-04 17:40:17.669193928 +0800
@@ -1,2 +1,2 @@
-paddlepaddle-gpu==2.4.2
+paddlepaddle-xpu==3.1.0
tqdm

还有一些命令执行脚本也需要进行补充。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions