  "tensorflow"
  ]
  Installed_Packages = {}
  Missing_Packages = []
  
  # load requirements list
 
</s> remove     global Missing_Packages, Installed_Packages
 </s> add     global Missing_Packages, Installed_Packages, ENABLE_CUDA, Is_MacOS
    if ENABLE_CUDA and Is_MacOS:
        Required_Packages.extend(MacOS_Required_Packages) </s> remove         try:
            self.device_count = pynvml.nvmlDeviceGetCount()
        except pynvml.NVMLError:
            self.device_count = 0
 </s> add         if is_macos:
            self.device_count = pynvx.cudaDeviceGetCount(ignore=True)
        else:
            try:
                self.device_count = pynvml.nvmlDeviceGetCount()
            except pynvml.NVMLError:
                self.device_count = 0 </s> remove         try:
            driver = pynvml.nvmlSystemGetDriverVersion().decode("utf-8")
        except pynvml.NVMLError:
            driver = "No Nvidia driver found"
 </s> add         if is_macos:
            driver = pynvx.cudaSystemGetDriverVersion(ignore=True)
        else:
            try:
                driver = pynvml.nvmlSystemGetDriverVersion().decode("utf-8")
            except pynvml.NVMLError:
                driver = "No Nvidia driver found" </s> remove         self.handles = [pynvml.nvmlDeviceGetHandleByIndex(i)
                        for i in range(self.device_count)]
 </s> add         if is_macos:
            self.handles = pynvx.cudaDeviceGetHandles(ignore=True)
        else:
            self.handles = [pynvml.nvmlDeviceGetHandleByIndex(i)
                            for i in range(self.device_count)]
MacOS_Required_Packages = [
"pynvx==0.0.4"
]
  "tensorflow"
  ]
MacOS_Required_Packages = [
"pynvx==0.0.4"
]
  Installed_Packages = {}
  Missing_Packages = []
  
  # load requirements list
keep add keep keep keep keep
 Fixed face extract with dlib on OS X (#510)

* fix: gpu stat for OS X
- Use pynvx to get GPU info on OS X
- fix face extract with dlib

Issue #488 
setup.py