image_celeba module

class image_celeba.image_celeba(afilename, anumber, matrix, P)[source]

Bases: object

A class to handle CelebA dataset images and resizing.

filename_jpg

The path of the jpg file.

Type:

str

number

The number of the image in the dataset.

Type:

int

matrix

A 40x2 matrix of features.

Type:

list

P

The list of the images into their encoded form, so it’s a list of vector

Type:

np.array

im

The image object.

Type:

PIL.Image

RESIZING(x, y)[source]

Resize the image to fit in a (x,y) box and save the resized image.

input:
x (int) :

The width of the box.

y (int) :

The height of the box.

get_filename_jpg()[source]

Returns the filename of the jpg file.