a8e8f9157b38314bb12910fe13fa7f34739d9c2b,tools/lib_alignments/jobs.py,Merge,process,#Merge#,455

Before Change


        logger.info("[MERGE ALIGNMENTS]")  // Tidy up cli output
        skip_count = 0
        merge_count = 0
        for _, src_alignments, _, frame in tqdm(self.alignments2.yield_faces(),
                                                desc="Merging Alignments",
                                                total=self.alignments2.frames_count):
            for idx, alignment in enumerate(src_alignments):
                if not alignment.get("hash", None):
                    logger.warning("Alignment "%s":%s has no Hash! Skipping", frame, idx)
                    skip_count += 1
                    continue
                if self.check_exists(frame, alignment, idx):
                    skip_count += 1
                    continue
                self.merge_alignment(frame, alignment, idx)
                merge_count += 1
        logger.info("Alignments Merged: %s", merge_count)
        logger.info("Alignments Skipped: %s", skip_count)
        if merge_count != 0:
            self.set_destination_filename()

After Change


        logger.info("[MERGE ALIGNMENTS]")  // Tidy up cli output
        skip_count = 0
        merge_count = 0
        total_count = sum([alignments.frames_count for alignments in self.process_alignments])
        with tqdm(desc="Merging Alignments", total=total_count) as pbar:
            for alignments in self.process_alignments:
                for _, src_alignments, _, frame in alignments.yield_faces():
                    for idx, alignment in enumerate(src_alignments):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: deepfakes/faceswap
Commit Name: a8e8f9157b38314bb12910fe13fa7f34739d9c2b
Time: 2019-04-12
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/jobs.py
Class Name: Merge
Method Name: process


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_face_yaw


Project Name: deepfakes/faceswap
Commit Name: 25a2ac95c3b788834db0808307073047747998dd
Time: 2019-10-21
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/media.py
Class Name: Faces
Method Name: process_folder