0e0b2faa1a205fe276a7c53bc600fca60b239234,tools/sort.py,Sort,sort_blur,#Sort#,138
Before Change
// Methods for sorting
def sort_blur(self):
Sort by blur amount
input_dir = self.args.input_dir
logger.info("Sorting by blur...")
img_list = [[img, self.estimate_blur(img)]
for img in
tqdm(self.find_images(input_dir),
desc="Loading",
file=sys.stdout)]
logger.info("Sorting...")
img_list = sorted(img_list, key=operator.itemgetter(1), reverse=True)
After Change
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))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: deepfakes/faceswap
Commit Name: 0e0b2faa1a205fe276a7c53bc600fca60b239234
Time: 2019-10-28
Author: vrooman.kyle@gmail.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_blur
Project Name: deepfakes/faceswap
Commit Name: 0e0b2faa1a205fe276a7c53bc600fca60b239234
Time: 2019-10-28
Author: vrooman.kyle@gmail.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_hist
Project Name: deepfakes/faceswap
Commit Name: 0e0b2faa1a205fe276a7c53bc600fca60b239234
Time: 2019-10-28
Author: vrooman.kyle@gmail.com
File Name: tools/sort.py
Class Name: Sort
Method Name: sort_hist_dissim