function [X] = load_imgs(in_path)

files = dir(sprintf('%s/*.jpg',in_path));

X = [];
for i = 1:length(files)
    idx = find(files(i).name == '_');
%     id(i) = str2num(files(i).name(1:idx(1)-1));
    im = imread(sprintf('%s/%s',in_path,files(i).name));
    X = [X double(im(:))];    
end
% h = size(im,1);
% w = size(im,2);

% [v p C] = unique(id);
% C = C';