logger.info("Sorting by estimated image blur...")
filename_list, image_list = self._get_images()
logger.info("Estimating blur...")
blurs = [self.estimate_blur(img) for img in image_list]
logger.info("Sorting...")
matched_list = list(zip(filename_list, blurs))
After Change
// TODO We have metadata here, so we can mask the face for blur estimate
blurs = [(filename, self.estimate_blur(image))
for filename, image, _ in tqdm(self._loader.load(),
desc="Estimating blur",
total=self._loader.count,
leave=False)]
logger.info("Sorting...")
return sorted(blurs, key=lambda x: x[1], reverse=True)
def sort_face(self):
Sort by identity similarity
logger.info("Sorting by identity similarity...")