Ejemplo n.º 1
0
def process_galaxy( galaxy_id, transform=0 ):
    #root = "/media/kevin/0026A5FD26A5F3B6/kaggle/galaxy/"
    root = "/vol/biomedic/users/kpk09/kaggle/galaxy/data/"
    f = root + "images_training_rev1/"+galaxy_id+".jpg"
    if thumbnail=="img":
        return galaxy.get_features(f,tiny_img=True,transform=transform)
    elif thumbnail=="grad":
        return galaxy.get_features(f,tiny_grad=True,transform=transform)
Ejemplo n.º 2
0
def process_galaxy( galaxy_id, transform=0 ):
    #root = "/media/kevin/0026A5FD26A5F3B6/kaggle/galaxy/"
    root = "/vol/biomedic/users/kpk09/kaggle/galaxy/data/"
    f = root + "images_training_rev1/"+galaxy_id+".jpg"
    return galaxy.get_features(f,image_statistics=True,transform=transform)
def process_galaxy(galaxy_id, transform=0):
    #root = "/media/kevin/0026A5FD26A5F3B6/kaggle/galaxy/"
    root = "/vol/biomedic/users/kpk09/kaggle/galaxy/data/"
    f = root + "images_training_rev1/" + galaxy_id + ".jpg"
    return galaxy.get_features(f, image_statistics=True, transform=transform)