                          raise FaceswapError(msg) from err
                  raise
  
              if angle != 0 and any(face.any() for face in batch.prediction):
                  logger.verbose("found face(s) by rotating image %s degrees",  # type:ignore
                                 angle)
  
              found_faces = cast(List[np.ndarray], ([face if not found.any() else found
                                                     for face, found in zip(batch.prediction,
                                                                            found_faces)]))
 
</s> remove                 logger.trace("Faces found for all images")  # type:ignore
 </s> add                 logger.trace("Faces found for all images")  # type:ignore[attr-defined] </s> remove             logger.trace("Resizing detection image from %s to %s. Scale=%s",  # type:ignore
 </s> add             logger.trace("Resizing detection image from %s to %s. "  # type:ignore[attr-defined]
                         "Scale=%s", </s> remove                 batch.prediction = self.predict(batch.feed)
                logger.trace("angle: %s, filenames: %s, prediction: %s",  # type:ignore
                             angle, batch.filename, batch.prediction)
 </s> add                 pred = self.predict(batch.feed)
                if angle == 0:
                    batch.prediction = pred
                else:
                    batch.prediction = np.array([b if b.any() else p
                                                 for b, p in zip(batch.prediction, pred)])
                logger.trace("angle: %s, filenames: %s, "  # type:ignore[attr-defined]
                             "prediction: %s",
                             angle, batch.filename, pred) </s> remove             logger.trace(item)  # type:ignore
 </s> add             logger.trace(item)  # type:ignore[attr-defined] </s> remove         logger.trace("Item out: %s",  # type:ignore
 </s> add         logger.trace("Item out: %s",  # type:ignore[attr-defined]
                logger.verbose("found face(s) by rotating image %s "  # type:ignore[attr-defined]
                               "degrees",
                          raise FaceswapError(msg) from err
                  raise
  
              if angle != 0 and any(face.any() for face in batch.prediction):
                logger.verbose("found face(s) by rotating image %s "  # type:ignore[attr-defined]
                               "degrees",
                                 angle)
  
              found_faces = cast(List[np.ndarray], ([face if not found.any() else found
                                                     for face, found in zip(batch.prediction,
                                                                            found_faces)]))
keep keep keep keep replace keep keep keep keep keep
 bugfix: Extract - rotation in detection 
plugins/extract/detect/_base.py