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

The val function code in the workflow process does not work properly, and the code parameters do not match #905

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mmseg/models/segmentors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def train_step(self, data_batch, optimizer, **kwargs):

return outputs

def val_step(self, data_batch, **kwargs):
def val_step(self, data_batch,optimizer=None, **kwargs):
"""The iteration step during validation.

This method shares the same signature as :func:`train_step`, but used
Expand Down