import os

DATA_ROOT = os.path.join(os.path.expanduser("~"), "cvds")

paths = {
    "caltech-101": ("101_ObjectCategories",),
    "caltech-256": ("256_ObjectCategories",),
    "CUB-200-2011": ("CUB_200_2011", "images"),
    "flowers102": ("oxfordflower102",),
    "flowers17": ("oxfordflower17",),
    "pets": ("oxfordpets",),
    "stanford-40": ("stanford.actions",),
    "faces.lfw": ("lfw",),
    "faces.lfw.aligned": ("lfw-deepfunneled",),
    "aircraft": ("fgvc-aircraft-2013b", "data"),
    "VOC2007": ("VOC2007", "VOC2007"),
    "VOC2012": ("VOC2012", "VOC2012"),
    "ImageNet2012": ("ILSVRC2012_img_val",)
}


def get_path(name):
    assert name in paths.keys()
    return os.path.join(DATA_ROOT, *paths[name])