From 8c304a7664ddeeff45631f1beadb74fd41a0e6bf Mon Sep 17 00:00:00 2001 From: haoyuying <35907364+haoyuying@users.noreply.github.com> Date: Mon, 28 Jun 2021 17:58:58 +0800 Subject: [PATCH] Update python_use_hub.rst --- docs/docs_ch/get_start/python_use_hub.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs_ch/get_start/python_use_hub.rst b/docs/docs_ch/get_start/python_use_hub.rst index b78d3f26..839c7a9b 100755 --- a/docs/docs_ch/get_start/python_use_hub.rst +++ b/docs/docs_ch/get_start/python_use_hub.rst @@ -32,7 +32,7 @@ PaddleHub采用模型即软件的设计理念,所有的预训练模型与Pytho # module = hub.Module(name="humanseg_lite", version="1.1.1") module = hub.Module(name="humanseg_lite") - res = module.segmentation( + res = module.segment( paths = ["./test_image.jpg"], visualization=True, output_dir='humanseg_output') @@ -131,4 +131,4 @@ PaddleHub采用模型即软件的设计理念,所有的预训练模型与Pytho ---------------- - [{'text': '味道不错,确实不算太辣,适合不能吃辣的人。就在长江边上,抬头就能看到长江的风景。鸭肠、黄鳝都比较新鲜。', 'sentiment_label': 1, 'sentiment_key': 'positive', 'positive_probs': 0.9771, 'negative_probs': 0.0229}] \ No newline at end of file + [{'text': '味道不错,确实不算太辣,适合不能吃辣的人。就在长江边上,抬头就能看到长江的风景。鸭肠、黄鳝都比较新鲜。', 'sentiment_label': 1, 'sentiment_key': 'positive', 'positive_probs': 0.9771, 'negative_probs': 0.0229}] -- GitLab