Skip to content

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
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