Skip to content

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

Merged
michaelowenliu merged 16 commits into
PaddlePaddle:developfrom
LutaoChu:warpaffine
Apr 29, 2022
Merged

[BugFix] Fix the problem of label_padding_value not work in warpAffine#2072
michaelowenliu merged 16 commits into
PaddlePaddle:developfrom
LutaoChu:warpaffine

Conversation

@LutaoChu
Copy link
Copy Markdown
Contributor

solve #2053

test code

from PIL import Image
import cv2
import numpy as np
from paddleseg.transforms import RandomAffine

path = 'data/mini_supervisely/Annotations/ache-adult-depression-expression-41253.png'
label = Image.open(path)
label = np.array(label)
path = 'data/mini_supervisely/Images/ache-adult-depression-expression-41253.jpg'
img = cv2.imread(path)

transform = RandomAffine()
img, label = transform(img, label)
print(img)
print(label)

This reverts commit 7e5f622.
@michaelowenliu michaelowenliu merged commit 1baf96e into PaddlePaddle:develop Apr 29, 2022
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