Skip to content

PP-LCNet_x1_0_textline_ori is not a registered model name. #4964

@A-Cycle-M

Description

@A-Cycle-M

I have installed paddleOCR and paddlex as follows:

python3 -m pip install paddlepaddle-gpu==3.2.2 -i https://www.paddlepaddle.org.cn/packages/stable/cu129/

git clone https://github.com/PaddlePaddle/PaddleX.git

cd PaddleX

pip install -e ".[base]"


paddlex --install
paddlex --install PaddleClas

However, I am facing a problem with the training script (main.py), which cannot find "PP-LCNet_x1_0_textline_ori". It errors out as it is not a registered model name: paddlex.utils.errors.others.UnsupportedParamError: 'PP-LCNet_x1_0_textline_ori' is not a registered model name..

When I run:

import paddlex

model = paddlex.create_model("PP-LCNet_x1_0_textline_ori")

It works just fine. But when I call main.py with the following config:

Global:
  model: PP-LCNet_x1_0_textline_ori
  mode: train

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions