2bcb7d572ac8fdacceb56d5cbd5b05fad8c71e5e,tools/sort/sort.py,Sort,sort_blur,#Sort#,155
Before Change
blurs = [self.estimate_blur(img) for img in image_list]
logger.info("Sorting...")
matched_list = list(zip(filename_list, blurs))
img_list = sorted(matched_list, key=operator.itemgetter(1), reverse=True)
return img_list
def sort_face(self):
Sort by identity similarity
After Change
logger.info("Sorting by estimated image blur...")
// 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)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: deepfakes/faceswap
Commit Name: 2bcb7d572ac8fdacceb56d5cbd5b05fad8c71e5e
Time: 2021-03-23
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/sort/sort.py
Class Name: Sort
Method Name: sort_blur
Project Name: chartbeat-labs/textacy
Commit Name: 504410df92f74a6471247909d01f4ca4639b91d8
Time: 2016-08-11
Author: burton@chartbeat.com
File Name: tests/test_readme.py
Class Name: ReadmeTestCase
Method Name: test_term_counting
Project Name: shibing624/pycorrector
Commit Name: 8f76475c3e5b3533b40e7ba41ca11ec987ffe974
Time: 2020-03-15
Author: xuming624@qq.com
File Name: pycorrector/corrector.py
Class Name: Corrector
Method Name: correct