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

fix U2Net_Portrait module readme (#1708)

上级 b3f19bfc
...@@ -50,16 +50,16 @@ ...@@ -50,16 +50,16 @@
## 三、模型API预测 ## 三、模型API预测
- ### 1、代码示例 - ### 1、预测代码示例
- ```python - ```python
import paddlehub as hub import paddlehub as hub
import cv2 import cv2
model = hub.Module(name="U2Net_Portrait") model = hub.Module(name="U2Net_Portrait")
result = model.Cartoon_GEN(images=[cv2.imread('/PATH/TO/IMAGE')]) result = model.Portrait_GEN(images=[cv2.imread('/PATH/TO/IMAGE')])
# or # or
# result = model.Cartoon_GEN(paths=['/PATH/TO/IMAGE']) # result = model.Portrait_GEN(paths=['/PATH/TO/IMAGE'])
``` ```
- ### 2、API - ### 2、API
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册