          os.remove(self._model_zip_path)
  
      def download_model(self):
          """ Download model zip to cache dir """
          logger.info("Downloading model: '%s'", self._model_name)
          attempts = 3
          for attempt in range(attempts):
              try:
                  response = urllib.request.urlopen(self._url_download, timeout=10)
                  logger.debug("header info: {%s}", response.info())
                  logger.debug("Return Code: %s", response.getcode())
                  self.write_zipfile(response)
 
</s> remove                 response = urllib.request.urlopen(self._url_download, timeout=10)
 </s> add                 downloaded_size = self._url_partial_size
                req = urllib.request.Request(self._url_download)
                if downloaded_size != 0:
                    req.add_header("Range", "bytes={}-".format(downloaded_size))
                response = urllib.request.urlopen(req, timeout=10) </s> remove                 self.write_zipfile(response)
 </s> add                 self.write_zipfile(response, downloaded_size) </s> remove     def write_zipfile(self, response):
 </s> add     def write_zipfile(self, response, downloaded_size): </s> remove                     logger.info("You can manually download the model from: %s and unzip the "
                                "contents to: %s", self._url_download, self.cache_dir)
 </s> add                     logger.info("You can try running again to resume the download.")
                    logger.info("Alternatively, you can manually download the model from: %s and "
                                "unzip the contents to: %s", self._url_download, self.cache_dir) </s> remove         load_queue = queue_manager.get_queue("detect")
 </s> add         load_queue = self.extractor.input_queue
        logger.info("Downloading model: '%s' from: %s", self._model_name, self._url_download)
        for attempt in range(self.retries):
          os.remove(self._model_zip_path)
  
      def download_model(self):
          """ Download model zip to cache dir """
        logger.info("Downloading model: '%s' from: %s", self._model_name, self._url_download)
        for attempt in range(self.retries):
        logger.info("Downloading model: '%s' from: %s", self._model_name, self._url_download)
        for attempt in range(self.retries):
        logger.info("Downloading model: '%s' from: %s", self._model_name, self._url_download)
        for attempt in range(self.retries):
              try:
                  response = urllib.request.urlopen(self._url_download, timeout=10)
                  logger.debug("header info: {%s}", response.info())
                  logger.debug("Return Code: %s", response.getcode())
                  self.write_zipfile(response)
keep keep keep keep replace replace replace keep keep keep keep keep
 Face filter vgg face (#724)

* Implement extraction pipeline

* Face filter to vgg_face. Resume partial model downloads

* On-the-fly conversion to extraction pipeline

* Move git model ids from get_model to model definition 
lib/utils.py