                      "total": 2048}
          free_vram = self.get_free()
          vram_free = max(free_vram)
          card_id = free_vram.index(vram_free)
          return {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
  
      def print_info(self):
          """ Output GPU info in verbose mode """
          print("GPU Driver:       {}".format(self.driver))
          print("GPU Device count: {}".format(self.device_count))
          print("GPU Devices:      {}".format(self.devices))
          print("GPU VRAM:         {}".format(self.vram))
 
</s> remove         if self.verbose:
            print("GPU VRAM used:    {}".format(vram))

 </s> add         if self.logger:
            self.logger.verbose("GPU VRAM used: %s", vram) </s> remove         print("Initializing Face Alignment Network...")
 </s> add 
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
                      "total": 2048}
          free_vram = self.get_free()
          vram_free = max(free_vram)
          card_id = free_vram.index(vram_free)
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
        retval = {"card_id": card_id,
                  "device": self.devices[card_id],
                  "free": vram_free,
                  "total": self.vram[card_id]}
        if self.logger:
            self.logger.debug("GPU Card with most free VRAM: %s", retval)
        return retval
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/gpu_stats.py