text_plain_output_1.png image_output_1.png
from skimage.transform import resize

import os

import pickle

path = '/kaggle/input/face-mask-dataset-1'
xname = '/kaggle/input/face-mask-dataset-1/celebA_real_with_mask1.pickle'
yname = '/kaggle/input/face-mask-dataset-1/celebA_real_with_out_mask1.pickle'
pickle_in = open(os.path.join(path, xname), 'rb')
x = pickle.load(pickle_in)
pickle_in = open(os.path.join(path, yname), 'rb')
y = pickle.load(pickle_in)
print(x.shape)
print(y.shape)
print(type(x))
x = resize(x, (len(x), 64, 64, 1), anti_aliasing=False)
y = resize(y, (len(y), 64, 64, 1), anti_aliasing=False)
print(x.shape)
print(y.shape)