MCPcopy Create free account
hub / github.com/albertpumarola/GANimation / main

Function main

test.py:60–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def main():
61 opt = TestOptions().parse()
62 if not os.path.isdir(opt.output_dir):
63 os.makedirs(opt.output_dir)
64
65 morph = MorphFacesInTheWild(opt)
66
67 image_path = opt.input_path
68 expression = np.random.uniform(0, 1, opt.cond_nc)
69 morph.morph_file(image_path, expression)
70
71
72

Callers 1

test.pyFile · 0.70

Calls 4

morph_fileMethod · 0.95
TestOptionsClass · 0.90
MorphFacesInTheWildClass · 0.85
parseMethod · 0.80

Tested by

no test coverage detected