Skip to content

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