      exit(0)
  
  
  if __name__ == "__main__":
      __warning_string = "Important: face-cnn method will cause an error when "
      __warning_string += "this tool is called directly instead of through the "
      __warning_string += "tools.py command script."
      print(__warning_string)
      print("Images sort tool.\n")
  
      PARSER = FullHelpArgumentParser()
      SUBPARSER = PARSER.add_subparsers()
      SORT = cli.SortArgs(
 
</s> remove         image = cv2.imread(image_file, cv2.IMREAD_GRAYSCALE)
 </s> add         image = cv2.imread(image_file)
        if image.ndim == 3:
            image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) </s> remove             aligner = PluginLoader.get_aligner(plugin)(loglevel=loglevel)
 </s> add             aligner = PluginLoader.get_aligner(plugin)(loglevel=self.args.loglevel) </s> remove         self.launch_aligner(self.args.loglevel)
 </s> add         self.launch_aligner() </s> remove         self.launch_aligner(self.args.loglevel)
 </s> add         self.launch_aligner() </s> remove     @staticmethod
    def launch_aligner(loglevel):
 </s> add     def launch_aligner(self):
    __WARNING_STRING = "Important: face-cnn method will cause an error when "
    __WARNING_STRING += "this tool is called directly instead of through the "
    __WARNING_STRING += "tools.py command script."
    print(__WARNING_STRING)
      exit(0)
  
  
  if __name__ == "__main__":
    __WARNING_STRING = "Important: face-cnn method will cause an error when "
    __WARNING_STRING += "this tool is called directly instead of through the "
    __WARNING_STRING += "tools.py command script."
    print(__WARNING_STRING)
    __WARNING_STRING = "Important: face-cnn method will cause an error when "
    __WARNING_STRING += "this tool is called directly instead of through the "
    __WARNING_STRING += "tools.py command script."
    print(__WARNING_STRING)
    __WARNING_STRING = "Important: face-cnn method will cause an error when "
    __WARNING_STRING += "this tool is called directly instead of through the "
    __WARNING_STRING += "tools.py command script."
    print(__WARNING_STRING)
    __WARNING_STRING = "Important: face-cnn method will cause an error when "
    __WARNING_STRING += "this tool is called directly instead of through the "
    __WARNING_STRING += "tools.py command script."
    print(__WARNING_STRING)
      print("Images sort tool.\n")
  
      PARSER = FullHelpArgumentParser()
      SUBPARSER = PARSER.add_subparsers()
      SORT = cli.SortArgs(
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Sort tool. Image grayscale conversion bugfix 
tools/sort.py