def get_distilled_labels(filenames):
result_labels = []
print("Creating labels")
result_labels = Parallel(n_jobs=num_cores)(delayed(make_label)(long_filename) for long_filename in tqdm(filenames))
return result_labels
# This function recives paths to images and lines from file with labels
# and returns only path to images that have corresponding label
评论列表
文章目录