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

[BugFix] Fix the problem of label_padding_value not work in warpAffine #2072

Merged
merged 16 commits into from
Apr 29, 2022
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
7e5f622
update
LutaoChu Sep 3, 2021
5a4397a
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Nov 17, 2021
3b7454f
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Nov 18, 2021
d693143
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 2, 2021
a423815
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 6, 2021
81f5a3f
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 8, 2021
a6f7376
Revert "update"
LutaoChu Dec 8, 2021
4f5f143
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 9, 2021
f0de47e
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 13, 2021
79e6b7b
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 16, 2021
bba131d
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 17, 2021
2d8a96d
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 27, 2021
1b01725
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Dec 29, 2021
a5c72f1
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Jan 4, 2022
a480fbc
Merge branch 'develop' of https://github.com/PaddlePaddle/PaddleSeg i…
LutaoChu Apr 29, 2022
7c97e2d
[BugFix] Fix the problem of label_padding_value not work in warpAffine
LutaoChu Apr 29, 2022
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
5 changes: 3 additions & 2 deletions paddleseg/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ def __init__(self,
min_scale_factor=0.75,
max_scale_factor=1.25,
im_padding_value=(128, 128, 128),
label_padding_value=(255, 255, 255)):
label_padding_value=255):
self.size = size
self.translation_offset = translation_offset
self.max_rotation = max_rotation
Expand Down Expand Up @@ -1264,7 +1264,8 @@ def __call__(self, im, label=None):
matrix,
tuple(self.size),
flags=cv2.INTER_NEAREST,
borderMode=cv2.BORDER_CONSTANT)
borderMode=cv2.BORDER_CONSTANT,
borderValue=self.label_padding_value)
if label is None:
return (im, )
else:
Expand Down