Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
93cfcb6a
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 2 年 前同步成功
通知
285
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
93cfcb6a
编写于
11月 30, 2020
作者:
H
haoyuying
提交者:
GitHub
11月 30, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
revise readme caused by __new__() takes 1 positional argument but 2 were given
上级
c2740baf
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
23 addition
and
23 deletion
+23
-23
hub_module/modules/image/colorization/deoldify/README.md
hub_module/modules/image/colorization/deoldify/README.md
+1
-1
hub_module/modules/image/colorization/photo_restoration/README.md
...le/modules/image/colorization/photo_restoration/README.md
+1
-1
hub_module/modules/image/gan/stgan_bald/README.md
hub_module/modules/image/gan/stgan_bald/README.md
+1
-1
hub_module/modules/image/humanseg/humanseg_lite/README.md
hub_module/modules/image/humanseg/humanseg_lite/README.md
+1
-1
hub_module/modules/image/humanseg/humanseg_mobile/README.md
hub_module/modules/image/humanseg/humanseg_mobile/README.md
+1
-1
hub_module/modules/image/humanseg/humanseg_server/README.md
hub_module/modules/image/humanseg/humanseg_server/README.md
+1
-1
hub_module/modules/image/keypoint_detection/hand_pose_localization/README.md
...image/keypoint_detection/hand_pose_localization/README.md
+1
-1
hub_module/modules/image/style_transfer/UGATIT_100w/README.md
...module/modules/image/style_transfer/UGATIT_100w/README.md
+1
-1
hub_module/modules/image/style_transfer/UGATIT_92w/README.md
hub_module/modules/image/style_transfer/UGATIT_92w/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v1_hayao_60/README.md
...dules/image/style_transfer/animegan_v1_hayao_60/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_hayao_64/README.md
...dules/image/style_transfer/animegan_v2_hayao_64/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_hayao_99/README.md
...dules/image/style_transfer/animegan_v2_hayao_99/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_paprika_54/README.md
...les/image/style_transfer/animegan_v2_paprika_54/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_paprika_74/README.md
...les/image/style_transfer/animegan_v2_paprika_74/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_paprika_97/README.md
...les/image/style_transfer/animegan_v2_paprika_97/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_paprika_98/README.md
...les/image/style_transfer/animegan_v2_paprika_98/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_shinkai_33/README.md
...les/image/style_transfer/animegan_v2_shinkai_33/README.md
+1
-1
hub_module/modules/image/style_transfer/animegan_v2_shinkai_53/README.md
...les/image/style_transfer/animegan_v2_shinkai_53/README.md
+1
-1
hub_module/modules/image/super_resolution/dcscn/README.md
hub_module/modules/image/super_resolution/dcscn/README.md
+1
-1
hub_module/modules/image/super_resolution/falsr_a/README.md
hub_module/modules/image/super_resolution/falsr_a/README.md
+1
-1
hub_module/modules/image/super_resolution/falsr_b/README.md
hub_module/modules/image/super_resolution/falsr_b/README.md
+1
-1
hub_module/modules/image/super_resolution/falsr_c/README.md
hub_module/modules/image/super_resolution/falsr_c/README.md
+1
-1
hub_module/modules/image/super_resolution/realsr/README.md
hub_module/modules/image/super_resolution/realsr/README.md
+1
-1
未找到文件。
hub_module/modules/image/colorization/deoldify/README.md
浏览文件 @
93cfcb6a
...
@@ -57,7 +57,7 @@ def run_video(self, video):
...
@@ -57,7 +57,7 @@ def run_video(self, video):
```
python
```
python
import
paddlehub
as
hub
import
paddlehub
as
hub
model
=
hub
.
Module
(
'deoldify'
)
model
=
hub
.
Module
(
name
=
'deoldify'
)
model
.
predict
(
'/PATH/TO/IMAGE/OR/VIDEO'
)
model
.
predict
(
'/PATH/TO/IMAGE/OR/VIDEO'
)
```
```
...
...
hub_module/modules/image/colorization/photo_restoration/README.md
浏览文件 @
93cfcb6a
...
@@ -38,7 +38,7 @@ def run_image(self,
...
@@ -38,7 +38,7 @@ def run_image(self,
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
model
=
hub
.
Module
(
'photo_restoration'
,
visualization
=
True
)
model
=
hub
.
Module
(
name
=
'photo_restoration'
,
visualization
=
True
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
res
=
model
.
run_image
(
im
)
res
=
model
.
run_image
(
im
)
...
...
hub_module/modules/image/gan/stgan_bald/README.md
浏览文件 @
93cfcb6a
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
import paddlehub as hub
import paddlehub as hub
import cv2
import cv2
stgan_bald = hub.Module('stgan_bald')
stgan_bald = hub.Module(
name=
'stgan_bald')
im = cv2.imread('/PATH/TO/IMAGE')
im = cv2.imread('/PATH/TO/IMAGE')
res = stgan_bald.bald(images=[im],visualization=True)
res = stgan_bald.bald(images=[im],visualization=True)
# 服务部署
# 服务部署
...
...
hub_module/modules/image/humanseg/humanseg_lite/README.md
浏览文件 @
93cfcb6a
...
@@ -105,7 +105,7 @@ def save_inference_model(dirname='humanseg_lite_model',
...
@@ -105,7 +105,7 @@ def save_inference_model(dirname='humanseg_lite_model',
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
human_seg
=
hub
.
Module
(
'humanseg_lite'
)
human_seg
=
hub
.
Module
(
name
=
'humanseg_lite'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
human_seg
.
segment
(
images
=
[
im
],
visualization
=
True
)
res
=
human_seg
.
segment
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/humanseg/humanseg_mobile/README.md
浏览文件 @
93cfcb6a
...
@@ -105,7 +105,7 @@ def save_inference_model(dirname='humanseg_mobile_model',
...
@@ -105,7 +105,7 @@ def save_inference_model(dirname='humanseg_mobile_model',
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
human_seg
=
hub
.
Module
(
'humanseg_mobile'
)
human_seg
=
hub
.
Module
(
name
=
'humanseg_mobile'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
human_seg
.
segment
(
images
=
[
im
],
visualization
=
True
)
res
=
human_seg
.
segment
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/humanseg/humanseg_server/README.md
浏览文件 @
93cfcb6a
...
@@ -108,7 +108,7 @@ def save_inference_model(dirname,
...
@@ -108,7 +108,7 @@ def save_inference_model(dirname,
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
human_seg
=
hub
.
Module
(
'humanseg_server'
)
human_seg
=
hub
.
Module
(
name
=
'humanseg_server'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
human_seg
.
segment
(
images
=
[
im
],
visualization
=
True
)
res
=
human_seg
.
segment
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/keypoint_detection/hand_pose_localization/README.md
浏览文件 @
93cfcb6a
...
@@ -46,7 +46,7 @@ import cv2
...
@@ -46,7 +46,7 @@ import cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'hand_pose_localization'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'hand_pose_localization'
,
use_gpu
=
False
)
# 调用关键点检测API
# 调用关键点检测API
result
=
model
.
keypoint_detection
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
keypoint_detection
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/UGATIT_100w/README.md
浏览文件 @
93cfcb6a
...
@@ -58,7 +58,7 @@ import paddlehub as hub
...
@@ -58,7 +58,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'UGATIT_100w'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'UGATIT_100w'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/UGATIT_92w/README.md
浏览文件 @
93cfcb6a
...
@@ -58,7 +58,7 @@ import paddlehub as hub
...
@@ -58,7 +58,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'UGATIT_92w'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'UGATIT_92w'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v1_hayao_60/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v1_hayao_60'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v1_hayao_60'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_hayao_64/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_hayao_64'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_hayao_64'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_hayao_99/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_hayao_99'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_hayao_99'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_paprika_54/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_paprika_54'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_paprika_54'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_paprika_74/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_paprika_74'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_paprika_74'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_paprika_97/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_paprika_97'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_paprika_97'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_paprika_98/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_paprika_98'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_paprika_98'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_shinkai_33/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_shinkai_33'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_shinkai_33'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/style_transfer/animegan_v2_shinkai_53/README.md
浏览文件 @
93cfcb6a
...
@@ -63,7 +63,7 @@ import paddlehub as hub
...
@@ -63,7 +63,7 @@ import paddlehub as hub
# 模型加载
# 模型加载
# use_gpu:是否使用GPU进行预测
# use_gpu:是否使用GPU进行预测
model
=
hub
.
Module
(
'animegan_v2_shinkai_53'
,
use_gpu
=
False
)
model
=
hub
.
Module
(
name
=
'animegan_v2_shinkai_53'
,
use_gpu
=
False
)
# 模型预测
# 模型预测
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
result
=
model
.
style_transfer
(
images
=
[
cv2
.
imread
(
'/PATH/TO/IMAGE'
)])
...
...
hub_module/modules/image/super_resolution/dcscn/README.md
浏览文件 @
93cfcb6a
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
sr_model
=
hub
.
Module
(
'dcscn'
)
sr_model
=
hub
.
Module
(
name
=
'dcscn'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/super_resolution/falsr_a/README.md
浏览文件 @
93cfcb6a
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
sr_model
=
hub
.
Module
(
'falsr_a'
)
sr_model
=
hub
.
Module
(
name
=
'falsr_a'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/super_resolution/falsr_b/README.md
浏览文件 @
93cfcb6a
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
sr_model
=
hub
.
Module
(
'falsr_b'
)
sr_model
=
hub
.
Module
(
name
=
'falsr_b'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/super_resolution/falsr_c/README.md
浏览文件 @
93cfcb6a
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
...
@@ -59,7 +59,7 @@ def save_inference_model(self,
import
cv2
import
cv2
import
paddlehub
as
hub
import
paddlehub
as
hub
sr_model
=
hub
.
Module
(
'falsr_c'
)
sr_model
=
hub
.
Module
(
name
=
'falsr_c'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
im
=
cv2
.
imread
(
'/PATH/TO/IMAGE'
).
astype
(
'float32'
)
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
#visualization=True可以用于查看超分图片效果,可设置为False提升运行速度。
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
res
=
sr_model
.
reconstruct
(
images
=
[
im
],
visualization
=
True
)
...
...
hub_module/modules/image/super_resolution/realsr/README.md
浏览文件 @
93cfcb6a
...
@@ -57,7 +57,7 @@ def run_video(self, video):
...
@@ -57,7 +57,7 @@ def run_video(self, video):
```
python
```
python
import
paddlehub
as
hub
import
paddlehub
as
hub
model
=
hub
.
Module
(
'realsr'
)
model
=
hub
.
Module
(
name
=
'realsr'
)
model
.
predict
(
'/PATH/TO/IMAGE/OR/VIDEO'
)
model
.
predict
(
'/PATH/TO/IMAGE/OR/VIDEO'
)
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录