      else:
          ERROR("Please run this script with Python3 64bit and try again.")
          return False
  
  def Check_PIP():
      try:
          try: # for pip >= 10
              from pip._internal.utils.misc import get_installed_distributions, get_installed_version
          except ImportError: # for pip <= 9.0.3
              from pip.utils import get_installed_distributions, get_installed_version
 
</s> remove         try: # for pip >= 10
            from pip._internal.utils.misc import get_installed_distributions, get_installed_version
        except ImportError: # for pip <= 9.0.3
            from pip.utils import get_installed_distributions, get_installed_version
        global Installed_Packages
        Installed_Packages = {pkg.project_name:pkg.version for pkg in get_installed_distributions()}
        INFO("Installed PIP: " + get_installed_version("pip"))
 </s> add         try:  # for pip >= 10
            from pip._internal.utils.misc import (get_installed_distributions,
                                                  get_installed_version)
        except ImportError:  # for pip <= 9.0.3
            from pip.utils import (get_installed_distributions,
                                   get_installed_version)
        global INSTALLED_PACKAGES
        INSTALLED_PACKAGES = {pkg.project_name: pkg.version
                              for pkg in get_installed_distributions()}
        out_info("Installed PIP: " + get_installed_version("pip")) </s> remove     else:
        ERROR("Please run this script with Python3 64bit and try again.")
        return False
 </s> add  </s> remove                      or (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix))
    if Py_Version[0].split(".")[0] == "3" and  Py_Version[1] == "64bit":
        INFO("Installed Python: {0} {1}".format(Py_Version[0],Py_Version[1]))
 </s> add                      or (hasattr(sys, "base_prefix") and
                         sys.base_prefix != sys.prefix))
    if PY_VERSION[0].split(".")[0] == "3" and PY_VERSION[1] == "64bit":
        out_info("Installed Python: {0} {1}".format(PY_VERSION[0],
                                                    PY_VERSION[1])) </s> remove         ERROR("Import pip failed. Please Install python3-pip and try again")
 </s> add         out_error("Import pip failed. Please Install python3-pip "
                  "and try again") </s> remove         for m in Missing_Packages:
            msg = "Installing {}".format(m)
            INFO(msg)
 </s> add         for pkg in MISSING_PACKAGES:
            msg = "Installing {}".format(pkg)
            out_info(msg)
    out_error("Please run this script with Python3 64bit and try again.")
    return False


def check_pip():
    """ Check installed pip version """
      else:
          ERROR("Please run this script with Python3 64bit and try again.")
          return False
  
    out_error("Please run this script with Python3 64bit and try again.")
    return False


def check_pip():
    """ Check installed pip version """
      try:
          try: # for pip >= 10
              from pip._internal.utils.misc import get_installed_distributions, get_installed_version
          except ImportError: # for pip <= 9.0.3
              from pip.utils import get_installed_distributions, get_installed_version
keep keep keep keep replace keep keep keep keep keep
 Extraction - Speed improvements (#522) (#523)

* Extraction - Speed improvements (#522)

* Initial Plugin restructure

* Detectors to plugins. Detector speed improvements

* Re-implement dlib aligner, remove models, FAN to TF. Parallel processing

* Update manual, update convert, implement parallel/serial switching

* linting + fix cuda check (setup.py). requirements update keras 2.2.4

* Add extract size option. Fix dlib hog init

* GUI: Increase tooltip width

* Update alignment tool to support new DetectedFace

* Add skip existing faces option

* Fix sort tool to new plugin structure

* remove old align plugin

* fix convert -skip faces bug

* Fix convert skipping no faces frames

* Convert - draw onto transparent layer

* Fix blur threshold bug

* fix skip_faces convert bug

* Fix training 
setup.py