# Path: deeppy/dataset/util.py
# def touch(filepath, times=None):
# def require_dir(path):
# def url_filename(url):
# def download(url, target_dir, filename=None):
# def checkpoint(filepath):
# def is_archive(filepath):
# def archive_extract(filepath, target_dir):
# def checksum(filename, method='sha1'):
# def _read_int(buf):
# def load_idx(filepath):


import os
import logging
import numpy as np
from PIL import Image
from .util import dataset_home, download, checksum, archive_extract, checkpoint


log = logging.getLogger(__name__)


_ALIGNED_IMGS_URL = (
    'https://www.dropbox.com/sh/8oqt9vytwxb3s4r/AADIKlz8PR9zr6Y20qbkunrba/Img/img_align_celeba.zip?dl=1',
    'b7e1990e1f046969bd4e49c6d804b93cd9be1646'
)

_PARTITIONS_URL = (
    'https://www.dropbox.com/sh/8oqt9vytwxb3s4r/AADxLE5t6HqyD8sQCmzWJRcHa/Eval/list_eval_partition.txt?dl=1',
    'fb3d89825c49a2d389601eacb10d73815fd3c52d'

# Path: deeppy/dataset/util.py
# def touch(filepath, times=None):
# def require_dir(path):
# def url_filename(url):
# def download(url, target_dir, filename=None):
# def checkpoint(filepath):
# def is_archive(filepath):
# def archive_extract(filepath, target_dir):
# def checksum(filename, method='sha1'):
# def _read_int(buf):
# def load_idx(filepath):


# Path: deeppy/dataset/celeba.py
import os
import logging
import numpy as np
from PIL import Image
from .util import dataset_home, download, checksum, archive_extract, checkpoint



log = logging.getLogger(__name__)


_ALIGNED_IMGS_URL = (
    'https://www.dropbox.com/sh/8oqt9vytwxb3s4r/AADIKlz8PR9zr6Y20qbkunrba/Img/img_align_celeba.zip?dl=1',
    'b7e1990e1f046969bd4e49c6d804b93cd9be1646'
)

_PARTITIONS_URL = (
    'https://www.dropbox.com/sh/8oqt9vytwxb3s4r/AADxLE5t6HqyD8sQCmzWJRcHa/Eval/list_eval_partition.txt?dl=1',
    'fb3d89825c49a2d389601eacb10d73815fd3c52d'

)