Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleGAN
提交
9e22482f
P
PaddleGAN
项目概览
PaddlePaddle
/
PaddleGAN
1 年多 前同步成功
通知
97
Star
7254
Fork
1210
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleGAN
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
9e22482f
编写于
11月 09, 2022
作者:
W
wangna11BD
提交者:
GitHub
11月 09, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support cpu infer for vsr (#725)
上级
c2a79feb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
0 deletion
+8
-0
applications/tools/video-enhance.py
applications/tools/video-enhance.py
+6
-0
docs/en_US/tutorials/video_restore.md
docs/en_US/tutorials/video_restore.md
+1
-0
docs/zh_CN/industrial_solution/video_restore_cn.md
docs/zh_CN/industrial_solution/video_restore_cn.md
+1
-0
未找到文件。
applications/tools/video-enhance.py
浏览文件 @
9e22482f
...
...
@@ -109,9 +109,15 @@ parser.add_argument('--process_order',
default
=
'none'
,
nargs
=
'+'
,
help
=
'Process order'
)
parser
.
add_argument
(
"--cpu"
,
dest
=
"cpu"
,
action
=
"store_true"
,
help
=
"cpu mode."
)
if
__name__
==
"__main__"
:
args
=
parser
.
parse_args
()
if
args
.
cpu
:
paddle
.
set_device
(
'cpu'
)
orders
=
args
.
process_order
temp_video_path
=
None
...
...
docs/en_US/tutorials/video_restore.md
浏览文件 @
9e22482f
...
...
@@ -12,6 +12,7 @@ python tools/video-enhance.py --input you_video_path.mp4 --process_order DAIN De
-
`--input (str)`
: path of the input video.
-
`--output (str)`
: path of the output video.
-
`--process_order`
: name and order of called model. For example, if the input is
`DAIN DeOldify EDVR`
, then
`DAINPredictor`
`DeOldifyPredictor`
`EDVRPredictor`
will be called in sequence.
-
`--cpu`
: use cpu inference, GPU inference is used by default.
#### Results

...
...
docs/zh_CN/industrial_solution/video_restore_cn.md
浏览文件 @
9e22482f
...
...
@@ -16,6 +16,7 @@ python tools/video-enhance.py --input you_video_path.mp4 --process_order DAIN De
-
`--input (str)`
: 输入的视频路径。
-
`--output (str)`
: 输出的视频路径。
-
`--process_order`
: 调用的模型名字和顺序,比如输入为
`DAIN DeOldify PPMSVSR`
,则会顺序调用
`DAINPredictor`
`DeOldifyPredictor`
`PPMSVSRPredictor`
。
-
`--cpu`
: 开启cpu推理,默认使用GPU推理。
<div
align=
'center'
>
<img
src=
'https://user-images.githubusercontent.com/48054808/117925494-e9a70400-b329-11eb-9f38-a48ef946a3a4.gif'
width=
'600'
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录