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

refine: Allow specifying the model config when loading a local model. #3200

Open
wants to merge 1 commit into
base: release/2.5.2
Choose a base branch
from

Conversation

yluuu16
Copy link

@yluuu16 yluuu16 commented Jul 27, 2024

  • problem: PaddleClas loads the config based on model_type during initialization. However, the value of model_type is always set to custom while loading a local model, which results in the default configuration being loaded every time. PaddleClas 初始化时根据 model_type 来加载 config,而使用本地模型时 model_type 在 _check_input_model 中恒为 "custom",导致使用本地模型一直使用默认配置而无法使用正确的配置文件。
  • fix: Allow specifying the model config when loading a local model.

Copy link

paddle-bot bot commented Jul 27, 2024

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Jul 27, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Collaborator

@TingquanGao TingquanGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

support to use built-in config by specifing model_name when loading local model

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

Successfully merging this pull request may close these issues.

4 participants