Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleGAN
提交
fca1fe35
P
PaddleGAN
项目概览
PaddlePaddle
/
PaddleGAN
大约 2 年 前同步成功
通知
100
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看板
未验证
提交
fca1fe35
编写于
2月 24, 2023
作者:
W
wangna11BD
提交者:
GitHub
2月 24, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Support @to_static traing for msvsr (#753)
* Support @to_static traing for msvsr * fix error for TIPC
上级
01cb542f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
6 deletion
+11
-6
configs/msvsr_reds.yaml
configs/msvsr_reds.yaml
+2
-0
ppgan/models/msvsr_model.py
ppgan/models/msvsr_model.py
+5
-2
test_tipc/configs/edvr/train_infer_python.txt
test_tipc/configs/edvr/train_infer_python.txt
+1
-1
test_tipc/configs/esrgan/train_infer_python.txt
test_tipc/configs/esrgan/train_infer_python.txt
+1
-1
test_tipc/configs/msvsr/train_infer_python.txt
test_tipc/configs/msvsr/train_infer_python.txt
+2
-2
未找到文件。
configs/msvsr_reds.yaml
浏览文件 @
fca1fe35
...
@@ -27,6 +27,8 @@ model:
...
@@ -27,6 +27,8 @@ model:
pixel_criterion
:
pixel_criterion
:
name
:
CharbonnierLoss
name
:
CharbonnierLoss
reduction
:
mean
reduction
:
mean
# training model under @to_static
to_static
:
False
dataset
:
dataset
:
train
:
train
:
...
...
ppgan/models/msvsr_model.py
浏览文件 @
fca1fe35
...
@@ -31,7 +31,8 @@ class MultiStageVSRModel(BaseSRModel):
...
@@ -31,7 +31,8 @@ class MultiStageVSRModel(BaseSRModel):
PP-MSVSR: Multi-Stage Video Super-Resolution, 2021
PP-MSVSR: Multi-Stage Video Super-Resolution, 2021
"""
"""
def
__init__
(
self
,
generator
,
fix_iter
,
pixel_criterion
=
None
):
def
__init__
(
self
,
generator
,
fix_iter
,
pixel_criterion
=
None
,
to_static
=
False
,
image_shape
=
None
):
"""Initialize the PP-MSVSR class.
"""Initialize the PP-MSVSR class.
Args:
Args:
...
@@ -39,7 +40,9 @@ class MultiStageVSRModel(BaseSRModel):
...
@@ -39,7 +40,9 @@ class MultiStageVSRModel(BaseSRModel):
fix_iter (dict): config of fix_iter.
fix_iter (dict): config of fix_iter.
pixel_criterion (dict): config of pixel criterion.
pixel_criterion (dict): config of pixel criterion.
"""
"""
super
(
MultiStageVSRModel
,
self
).
__init__
(
generator
,
pixel_criterion
)
super
(
MultiStageVSRModel
,
self
).
__init__
(
generator
,
pixel_criterion
,
to_static
=
to_static
,
image_shape
=
image_shape
)
self
.
fix_iter
=
fix_iter
self
.
fix_iter
=
fix_iter
self
.
current_iter
=
1
self
.
current_iter
=
1
self
.
flag
=
True
self
.
flag
=
True
...
...
test_tipc/configs/edvr/train_infer_python.txt
浏览文件 @
fca1fe35
...
@@ -54,4 +54,4 @@ batch_size:64
...
@@ -54,4 +54,4 @@ batch_size:64
fp_items:fp32|fp16
fp_items:fp32|fp16
total_iters:100
total_iters:100
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_cudnn_exhaustive_search=
1
flags:FLAGS_cudnn_exhaustive_search=
0
test_tipc/configs/esrgan/train_infer_python.txt
浏览文件 @
fca1fe35
...
@@ -54,4 +54,4 @@ batch_size:32|64
...
@@ -54,4 +54,4 @@ batch_size:32|64
fp_items:fp32
fp_items:fp32
total_iters:500
total_iters:500
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_cudnn_exhaustive_search=
1
flags:FLAGS_cudnn_exhaustive_search=
0
test_tipc/configs/msvsr/train_infer_python.txt
浏览文件 @
fca1fe35
...
@@ -17,7 +17,7 @@ norm_train:tools/main.py -c configs/msvsr_reds.yaml --seed 123 -o log_config.int
...
@@ -17,7 +17,7 @@ norm_train:tools/main.py -c configs/msvsr_reds.yaml --seed 123 -o log_config.int
pact_train:null
pact_train:null
fpgm_train:null
fpgm_train:null
distill_train:null
distill_train:null
null:null
to_static_train:model.to_static=True
null:null
null:null
##
##
===========================eval_params===========================
===========================eval_params===========================
...
@@ -54,6 +54,6 @@ batch_size:2|4
...
@@ -54,6 +54,6 @@ batch_size:2|4
fp_items:fp32|fp16
fp_items:fp32|fp16
total_iters:60
total_iters:60
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
--profiler_options:batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile
flags:FLAGS_cudnn_exhaustive_search=
1
flags:FLAGS_cudnn_exhaustive_search=
0
===========================infer_benchmark_params==========================
===========================infer_benchmark_params==========================
random_infer_input:[{float32,[2,3,180,320]}]
random_infer_input:[{float32,[2,3,180,320]}]
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录