未验证 提交 036cdce4 编写于 作者: C chenjian 提交者: GitHub

fix doc format (#1855)

Co-authored-by: Nwuzewu <wuzewu@baidu.com>
Co-authored-by: NZeyu Chen <chenzeyu01@baidu.com>
上级 1730279f
......@@ -63,13 +63,13 @@
module = hub.Module(name="styleganv2_editing")
input_path = ["/PATH/TO/IMAGE"]
# Read from a file
module.generate(paths=input_path, direction_name = 'age', direction_offset = 5, output_dir='./editing_result/', use_gpu=True)
module.generate(paths=input_path, direction_name='age', direction_offset=5, output_dir='./editing_result/', use_gpu=True)
```
- ### 3、API
- ```python
generate(self, images=None, paths=None, direction_name = 'age', direction_offset = 0.0, output_dir='./editing_result/', use_gpu=False, visualization=True)
generate(self, images=None, paths=None, direction_name='age', direction_offset=0.0, output_dir='./editing_result/', use_gpu=False, visualization=True)
```
- 人脸编辑生成API。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册