  
  
  def download_file(url, filename):  # TODO: retry
      if os.path.isfile(filename):
          print_status("[?] '%s' already cached as '%s'" % (url, filename))
          return filename
      try:
          print_status("[?] Downloading '%s' to '%s'" % (url, filename))
 
</s> remove     except urllib.error.URLError as e:
        print_fail("[-] Failed downloading: %s" % e)
 </s> add     except urllib.error.URLError as err:
        print_fail("[-] Failed downloading: %s" % err) </s> remove     except CalledProcessError as e:
        print_fail("[-] Test failed with %s" % e)
        fail_count += 1
 </s> add     except CalledProcessError as err:
        print_fail("[-] Test failed with %s" % err)
        FAIL_COUNT += 1 </s> remove     test_count += 1
 </s> add     TEST_COUNT += 1 </s> remove     global fail_count, test_count
 </s> add     """ run a test """
    global FAIL_COUNT, TEST_COUNT  # pylint:disable=global-statement </s> remove         if extension in (".json", ".p", ".yaml", ".yml"):
 </s> add         if extension in (".json", ".p", ".pickle", ".yaml", ".yml"):
    """ Download a file from given url """
  
  
  def download_file(url, filename):  # TODO: retry
    """ Download a file from given url """
      if os.path.isfile(filename):
          print_status("[?] '%s' already cached as '%s'" % (url, filename))
          return filename
      try:
          print_status("[?] Downloading '%s' to '%s'" % (url, filename))
keep keep add keep keep keep keep keep
 Smart Mask - Extract code review

- Lint simple_tests.py
- Only reformat alignments file if it exists otherwise change filename
- Update legacy alignments to new format at all stages
- faces_detect.Mask.from_dict - logging format fix
- convert.py fix otf for new pipeline
- cli.py - Add note that masks not used. Revert convert masks
- faces_detect.py - Revert non-extract code
- Add .p and .pickle extensions for serializer
- plugins/extract revert some changes
- scripts/fsmedia - Revert code changes
- Pipeline - cleanup
- Consistant alpha channel stripping (fixes single-process)
- Store landmarks as numpy array
- Code attribution
- Normalize feed face and reference face to 0.0 - 1.0 in convert
- Lock in mask VRAM sized
- Add documentation to plugin_loader
- Update alignments tool to work with new format 
_travis/simple_tests.py