filenames_indices = list(
    set([int(fn.split("/")[-1].split(".")[0]) for fn in filenames_all])