get_cnn2_model() takes 0 positional arguments but 2 were given
时间: 2023-10-31 20:24:46 浏览: 88
This error message indicates that you are calling the function `get_cnn2_model()` with two arguments, but the function definition only expects zero arguments.
There are several possible reasons for this error:
1. You may have accidentally passed in extra arguments when calling the function. Check the line of code where you call `get_cnn2_model()` and make sure you are only passing in the necessary argument(s).
2. The function definition may have been modified since you last used it, and now expects one or more arguments. In this case, you will need to update the function call to include the expected arguments.
3. There may be an issue with the function definition itself. Double-check the function definition to make sure it matches your intended usage.
Without seeing your code, it's difficult to say which of these scenarios is causing the error.
阅读全文