PaddleClas icon indicating copy to clipboard operation
PaddleClas copied to clipboard

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

Open yluuu16 opened this issue 1 year ago • 2 comments

  • 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.

yluuu16 avatar Jul 27 '24 02:07 yluuu16

Thanks for your contribution!

paddle-bot[bot] avatar Jul 27 '24 02:07 paddle-bot[bot]

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.

CLAassistant avatar Jul 27 '24 02:07 CLAassistant

Automatically closed by Paddle-bot.

paddle-bot[bot] avatar Sep 30 '25 06:09 paddle-bot[bot]