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

Conversation

LutaoChu
Copy link
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