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

[CityscapeSOTA] Fix an evaluation bug #1481

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

JiehangXie
Copy link
Contributor

Function evaluate() in PaddleSeg will return 5 parameters, but in CityscapesSOTA it receives only 2 which caused error like 'ValueError:too many values to unpack(expected 2)'

Function evaluate() in PaddleSeg will return 5 parameters, but in CityscapesSOTA it receives only 2 which caused error like 'ValueError:too many values to unpack(expected 2)'
@michaelowenliu michaelowenliu changed the title Fix the bug in CityscapeSOTA [Fix] Fix an evaluation bug in CityscapeSOTA Nov 10, 2021
@michaelowenliu michaelowenliu changed the title [Fix] Fix an evaluation bug in CityscapeSOTA [CityscapeSOTA] Fix an evaluation bug Nov 10, 2021
@@ -218,6 +218,7 @@ def train(model,
stride=None,
crop_size=None,
num_workers=num_workers)
mean_iou, acc = metircs[0], metrics[1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样兼容性更好,避免以后paddleseg新增其他metric引发异常

@LutaoChu LutaoChu merged commit 345f3d4 into PaddlePaddle:develop Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants