  #!/usr/bin/env python3
  """ Tools for manipulating the alignments seralized file """
  
  # TODO merge alignments
  # TODO Remove whole frames from alignments file
  import os
  import pickle
  import struct
  from datetime import datetime
  
  from cv2 import circle, imread, imwrite, rectangle
  from tqdm import tqdm
  
  from lib import Serializer
  from lib.utils import _image_extensions
  from plugins.PluginLoader import PluginLoader
  
  
  class Alignments():
      """ Perform tasks relating to alignments file """
      def __init__(self, arguments):
 
</s> remove from lib.utils import get_folder, get_image_paths, set_system_verbosity
 </s> add from lib.utils import (get_folder, get_image_paths, rotate_image_by_angle,
                       set_system_verbosity) </s> remove from .detectors import DLibDetector, MTCNNDetector
 </s> add from .detectors import DLibDetector, MTCNNDetector, ManualDetector
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
  #!/usr/bin/env python3
  """ Tools for manipulating the alignments seralized file """
  
  # TODO merge alignments
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
from lib.utils import set_system_verbosity
from .lib_alignments import (AlignmentData, Check, Draw, Extract, Manual,
                             Reformat, RemoveAlignments, Rotate, Sort)
  
  
  class Alignments():
      """ Perform tasks relating to alignments file """
      def __init__(self, arguments):
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Alignments Tool - Manual (#503)

* Initial alignment tool implementation

* Add face processing. Fix helptext formatting for cli and gui

* Extract faces from alignments file

* Add draw landmarks

* fix analysis hours past 24 bug

* Remove tools flag. Enlarge GUI tooltips

* Add filename extension check for image folders

* Fix folder nonetype bug and linting

* Bugfix renaming of faces

* Import alignments from DeepFaceLab

* Remove frames requirement for dfl

* Alignments Tool: Add remove frames

* Alignments: Add remove frames (#492)

* Alignments Tool: Add remove frames

* Implement Frame display for manual extract

* Alignments refactor

* Further navigation improvements

* Further navigation improvements

* Alignment Tool: Refactor

* Move rotate_image_by_angle() to utils

* Further refactoring improvements

* Reduce key bindings. Add skip to has faces, Add resize frame binding

* More navigation options. Delete faces added. Save alignments added

* Add: Reload alignments. Add extra api calls. Better redraw handling.

* Manual Alignments - Alpha Build

* Rotate landmarks for rotated images

* Rebase to remove OriginalHiRes changes 
tools/alignments.py