Skip to content

[CityscapeSOTA] Fix an evaluation bug#1481

Merged
LutaoChu merged 2 commits into
PaddlePaddle:developfrom
JiehangXie:develop
Nov 16, 2021
Merged

[CityscapeSOTA] Fix an evaluation bug#1481
LutaoChu merged 2 commits into
PaddlePaddle:developfrom
JiehangXie:develop

Conversation

@JiehangXie
Copy link
Copy Markdown
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
stride=None,
crop_size=None,
num_workers=num_workers)
mean_iou, acc = metircs[0], metrics[1]
Copy link
Copy Markdown
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