提交 31a63d3b 编写于 作者: L lijianshe02

refine psgan code

上级 6306f226
......@@ -207,3 +207,9 @@ def main(args, cfg, save_path='transferred_image.png'):
(face.left(), face.top(), face.right(), face.bottom()))
image = postprocess(source_crop, image)
image.save(save_path)
if __name__ == '__main__':
args = parse_args()
cfg = get_config(args.config_file)
main(args, cfg)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册