pe.data.image.cat module

class pe.data.image.cat.Cat(root_dir='data', res=512)[source]

Bases: Data

The Cat dataset.

URL = 'https://www.kaggle.com/api/v1/datasets/download/fjxmlzn/cat-cookie-doudou'

The URL of the dataset

__init__(root_dir='data', res=512)[source]

Constructor.

Parameters:
  • root_dir (str, optional) – The root directory to save the dataset, defaults to “data”

  • res (int, optional) – The resolution of the images, defaults to 512

_download()[source]

Download the dataset if it does not exist.

_read_data()[source]

Read the data from the zip file.