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
Segmentation metrics mini update - per-class for iou & dice #1031
Conversation
mini update just before better one - #1027 |
catalyst/metrics/dice.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> outputs = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (82 > 79 characters)
catalyst/metrics/dice.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> outputs = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (82 > 79 characters)
catalyst/metrics/iou.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> outputs = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (82 > 79 characters)
catalyst/metrics/iou.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> outputs = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (82 > 79 characters)
catalyst/metrics/dice.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> model = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (80 > 79 characters)
catalyst/metrics/dice.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> model = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (80 > 79 characters)
catalyst/metrics/iou.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> model = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (80 > 79 characters)
catalyst/metrics/iou.py
Outdated
>>> right[:, :, :, :half_size] = 0 | ||
>>> top_left = torch.zeros(shape) | ||
>>> top_left[:, :, :half_size, :half_size] = 1 | ||
>>> model = torch.cat([empty, left, empty, full, left, top_left], dim=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (80 > 79 characters)
Before submitting
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?pytest .
?Description
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
PS