  from lib.faces_detect import DetectedFace
  from lib.multithreading import SpawnProcess
  from lib.queue_manager import queue_manager, QueueEmpty
  from lib.utils import cv2_read_img
  from lib.vgg_face import VGGFace
  from plugins.plugin_loader import PluginLoader
  
  from . import cli
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 
</s> remove                               "choices": ("CPU", "OPENCL"),
                              "default": "CPU",
                              "help": "Backend to use for VGG Face inference. OpenCL is slightly "
                                      "faster but may not be available on all systems. Only used "
                                      "for sort by 'face'."})
 </s> add                               "choices": ("CPU", "GPU"),
                              "default": "GPU",
                              "help": "Backend to use for VGG Face inference."
                                      "Only used for sort by 'face'."})
from lib.vgg_face2_keras import VGGFace2 as VGGFace
  from lib.faces_detect import DetectedFace
  from lib.multithreading import SpawnProcess
  from lib.queue_manager import queue_manager, QueueEmpty
  from lib.utils import cv2_read_img
from lib.vgg_face2_keras import VGGFace2 as VGGFace
  from plugins.plugin_loader import PluginLoader
  
  from . import cli
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
keep keep keep keep replace keep keep keep keep keep
 Switch to keras version for sort face (#791)

Upgrade to vgg_face2 (keras) to speed up sort by face 
tools/sort.py