  def run_test(name, cmd):
      global fail_count, test_count
      print_status("[?] running %s" % name)
      print("Cmd: %s" % " ".join(cmd))
      test_count += 1
      try:
          check_call(cmd)
          print_ok("[+] Test success")
          return True
      except CalledProcessError as e:
 
</s> remove     global fail_count, test_count
 </s> add     """ run a test """
    global FAIL_COUNT, TEST_COUNT  # pylint:disable=global-statement </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     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 def train_args(model, model_path, faces, alignments, iterations=5, bs=8, extra_args=""):
 </s> add def train_args(model, model_path, faces, alignments, iterations=5, batchsize=8, extra_args=""):
    """ Train command """
    TEST_COUNT += 1
  def run_test(name, cmd):
      global fail_count, test_count
      print_status("[?] running %s" % name)
      print("Cmd: %s" % " ".join(cmd))
    TEST_COUNT += 1
      try:
          check_call(cmd)
          print_ok("[+] Test success")
          return True
      except CalledProcessError as e:
keep keep keep keep replace 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