      def __init__(self, arguments):
          self.args = arguments
          self.serializer = self.get_serializer()
  
      def get_serializer(self):
          """ Set the serializer to be used for loading and saving alignments """
          if not self.args.serializer and self.args.alignments_path:
 
</s> remove         alignfile = self.get_alignments_path()

 </s> add  </s> remove                               "choices": ("hog", "cnn"),
 </s> add                               "choices": ("hog", "cnn", "all"), </s> remove         if self.have_alignments():
 </s> add         if self.have_alignments_file: </s> remove 
    def have_alignments(self):
        """ Check if an alignments file exists """
        alignfile = self.get_alignments_path()
        return os.path.exists(alignfile)
 </s> add  </s> remove             faces_detected = self.load_skip_alignments(alignfile, faces_detected)
 </s> add             faces_detected = self.load_skip_alignments(self.alignments_path, faces_detected)
        self.alignments_path = self.get_alignments_path()
        self.have_alignments_file = os.path.exists(self.alignments_path)
      def __init__(self, arguments):
          self.args = arguments
          self.serializer = self.get_serializer()
        self.alignments_path = self.get_alignments_path()
        self.have_alignments_file = os.path.exists(self.alignments_path)
  
      def get_serializer(self):
          """ Set the serializer to be used for loading and saving alignments """
          if not self.args.serializer and self.args.alignments_path:
keep keep add keep keep keep keep
 Cli/Scripts Refactor (#374)

* Refactor for PEP 8 and split process function

* Remove backwards compatibility for skip frames

* Split optional functions into own class. Make functions more modular

* train.py - Fix write image bug. Make more modular

* convert.py: Extract alignments from frames if they don't exist

* BugFix: SkipExisting broken since face name refactor

* train.py - Semi-fix for hang on reaching target iteration. Now quits on preview mode
Make tensorflow / system warning less verbose

* Final bugfixes

* Add 'all' back in for selectable detectors

* Final minor tweaks 
scripts/fsmedia.py