# 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 shutil
import logging
import numpy as np
import scipy.io
from PIL import Image
from .util import dataset_home, download, checksum, archive_extract, checkpoint
        'a17d05bd522c52d84eca14327a23d494',
        # Checksum from website does not match.
        # 'ac79dc88658530a91423ebbba2b07bf3',
    ),
    'deepfunneled': (
        'http://vis-www.cs.umass.edu/lfw/lfw-deepfunneled.tgz',
        '68331da3eb755a505a502b5aacb3c201'
    ),
}

_PAIR_SPLIT_URLS = {
    'train': (
        'http://vis-www.cs.umass.edu/lfw/pairsDevTrain.txt',
        '4f27cbf15b2da4a85c1907eb4181ad21',
    ),
    'val': (
        'http://vis-www.cs.umass.edu/lfw/pairsDevTest.txt',
        '5132f7440eb68cf58910c8a45a2ac10b',
    ),
    'test': (
        'http://vis-www.cs.umass.edu/lfw/pairs.txt',
        '9f1ba174e4e1c508ff7cdf10ac338a7d',
    ),
}

_PEOPLE_SPLIT_URLS = {
    'train': (
        'http://vis-www.cs.umass.edu/lfw/peopleDevTrain.txt',
        '54eaac34beb6d042ed3a7d883e247a21',
    ),

# 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/lfw.py
import os
import shutil
import logging
import numpy as np
import scipy.io
from PIL import Image
from .util import dataset_home, download, checksum, archive_extract, checkpoint

        'a17d05bd522c52d84eca14327a23d494',
        # Checksum from website does not match.
        # 'ac79dc88658530a91423ebbba2b07bf3',
    ),
    'deepfunneled': (
        'http://vis-www.cs.umass.edu/lfw/lfw-deepfunneled.tgz',
        '68331da3eb755a505a502b5aacb3c201'
    ),
}

_PAIR_SPLIT_URLS = {
    'train': (
        'http://vis-www.cs.umass.edu/lfw/pairsDevTrain.txt',
        '4f27cbf15b2da4a85c1907eb4181ad21',
    ),
    'val': (
        'http://vis-www.cs.umass.edu/lfw/pairsDevTest.txt',
        '5132f7440eb68cf58910c8a45a2ac10b',
    ),
    'test': (
        'http://vis-www.cs.umass.edu/lfw/pairs.txt',
        '9f1ba174e4e1c508ff7cdf10ac338a7d',
    ),
}

_PEOPLE_SPLIT_URLS = {
    'train': (
        'http://vis-www.cs.umass.edu/lfw/peopleDevTrain.txt',
        '54eaac34beb6d042ed3a7d883e247a21',
    ),

    'val': (