PaddleClas
PaddleClas copied to clipboard
refine: Allow specifying the model config when loading a local model.
- problem: PaddleClas loads the config based on
model_typeduring initialization. However, the value ofmodel_typeis always set tocustomwhile 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.
Thanks for your contribution!
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.
Automatically closed by Paddle-bot.