TypeError: load_weights() got an unexpected keyword argument 'skip_mismatch'
时间: 2023-12-07 09:02:23 浏览: 139
升级keras解决load_weights()中的未定义skip_mismatch关键字问题
This error is raised when the `load_weights()` function is called with an unexpected keyword argument `skip_mismatch`. This means that the `load_weights()` function does not have a parameter named `skip_mismatch`.
To resolve this issue, you can remove the `skip_mismatch` parameter from the `load_weights()` function call. Alternatively, you can check the documentation of the `load_weights()` function to see if it supports the `skip_mismatch` parameter, and if it does, make sure you are using the correct version of the function that supports this parameter.
阅读全文