PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
21.79k stars 5.47k forks source link

Cannot finetune en_ppstructure_mobile_v2.0_SLANet_train with paddlepaddle-GPU #64652

Open tangh146 opened 1 month ago

tangh146 commented 1 month ago

问题描述 / Problem Description

Finetuning en_ppstructure_mobile_v2.0_SLANet_train with paddlepaddle-GPU fails with error. Finetuning with the CPU package works just fine.

运行环境 / Runtime Environment

复现代码 / Reproduction Code

Dataset and annotation structure: PubTabNet Loss function: SLALoss

完整报错 / Complete Error Message

(InvalidArgument) Currently, the type of tensor in slice indices only allows int32 and int64, please check the type of index tensor. (at ..\paddle/fluid/pybind/slice_utils.h:70)

可能解决方案 / Possible solutions

Finetuning with the CPU package works just fine.

附件 / Appendix

tangh146 commented 1 month ago

The GPU works for SLANet now after downgrading to PaddleOCR 2.6.0 Problem persists for 2.7.5