Skip to content

Commit

Permalink
Merge pull request #2 from iabaldwin/fair-dataset-transparency-fix
Browse files Browse the repository at this point in the history
Updated FAIR dataset RGBA mismatch
  • Loading branch information
HavenFeng authored Sep 12, 2022
2 parents c7c47fb + 5b33ff6 commit 5e44ab5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/datasets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from skimage.io import imread, imsave
from skimage.transform import estimate_transform, warp, resize, rescale
import PIL.Image

'''
images and keypoints: nomalized to [-1,1]
Expand Down Expand Up @@ -183,7 +184,8 @@ def __getitem__(self, idx):
image = imread(image_path) / 255.
kpt = np.load(kpt_path)[:, :2]

scene_image = imread(scene_path) / 255.
scene_image = PIL.Image.open(scene_path).convert('RGB')
scene_image = np.asarray(scene_image) / 255.

### crop information
tform = self.crop(image, kpt)
Expand Down

0 comments on commit 5e44ab5

Please sign in to comment.