()
| 58 | |
| 59 | |
| 60 | def 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 |
no test coverage detected