Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paddlex.utils.errors.others.UnsupportedParamError: 'SLANet_plus' is not a registered model name. #2891

Open
savi8sant8s opened this issue Jan 17, 2025 · 8 comments
Assignees

Comments

@savi8sant8s
Copy link

savi8sant8s commented Jan 17, 2025

When I try to train SLANet or SLANet Plus, the error below appears. I followed all the steps in the tutorial and installed the plugins, but I still get this error. I am testing the release/3.0-beta1 and release/3.0-beta2 branches.

> python3 main.py -c paddlex/configs/table_recognition/SLANet_plus.yaml     -o Global.mode=train     -o Global.dataset_dir=./dataset/t
able_rec_dataset_examples -o Global.output=output

> Traceback (most recent call last):
  File "/home/savio/Documents/dev/PaddleX/paddlex/repo_apis/base/config.py", line 30, in _create_config
    model_info = get_registered_model_info(model_name)
  File "/home/savio/Documents/dev/PaddleX/paddlex/repo_apis/base/register.py", line 78, in query
    return self._table[prim_key]
KeyError: 'SLANet_plus'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/savio/Documents/dev/PaddleX/paddlex/utils/result_saver.py", line 29, in wrap
    result = func(self, *args, **kwargs)
  File "/home/savio/Documents/dev/PaddleX/paddlex/engine.py", line 41, in run
    self._model.train()
  File "/home/savio/Documents/dev/PaddleX/paddlex/model.py", line 93, in train
    trainer = build_trainer(self._config)
  File "/home/savio/Documents/dev/PaddleX/paddlex/modules/base/trainer.py", line 34, in build_trainer
    return BaseTrainer.get(model_name)(config)
  File "/home/savio/Documents/dev/PaddleX/paddlex/modules/base/trainer.py", line 54, in __init__
    self.pdx_config, self.pdx_model = build_model(self.global_config.model)
  File "/home/savio/Documents/dev/PaddleX/paddlex/modules/base/build_model.py", line 32, in build_model
    config = Config(model_name, config_path)
  File "/home/savio/Documents/dev/PaddleX/paddlex/repo_apis/base/config.py", line 32, in _create_config
    raise UnsupportedParamError(
paddlex.utils.errors.others.UnsupportedParamError: 'SLANet_plus' is not a registered model name.
@cuicheng01
Copy link
Collaborator

Hi,how you installed the plugin? What command did you use for the installation? Was the installation successful? After installation, does the PaddleOCR directory exist in paddlex/repo_manager/repos?

@savi8sant8s
Copy link
Author

Olá, como você instalou o plugin? Qual comando você usou para a instalação? A instalação foi bem-sucedida? Após a instalação, o diretório PaddleOCR existe em paddlex/repo_manager/repos?

> paddlex --install PaddleOCR

Image

And PaddleOCR exists on paddlex/repo_manager_respos

Image

@cuicheng01
Copy link
Collaborator

Are there any files in PaddleOCR? What is your operating system?

@savi8sant8s
Copy link
Author

Are there any files in PaddleOCR? What is your operating system?

Yes.

Image

My SO is Pop!_OS 22.04 LTS x86_64

@savi8sant8s
Copy link
Author

screen-capture.webm

@savi8sant8s
Copy link
Author

With Docker image:

Image

@liuhongen1234567
Copy link
Collaborator

Hello, I watched your video and noticed that you always choose ‘no’. I want to confirm if selecting ‘yes’ when the system asks whether to reinstall will cause an SLANet_plus error. I tested it on paddlex beta2, and SLANet_plus can be successfully installed. I suspect that the issue is caused by an older version of PaddleOCR installed on your system because selecting ‘no’ installs the previous old PaddleOCR instead of downloading a new one.

@liuhongen1234567
Copy link
Collaborator

Additionally, it’s not necessary to use paddlex --install. This command installs all packages (including PaddleClas, PaddleDetection, etc.). You can simply use paddlex --install PaddleOCR instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants