Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleGAN
提交
09ab2ba7
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看板
未验证
提交
09ab2ba7
编写于
2月 09, 2021
作者:
L
LielinJiang
提交者:
GitHub
2月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[cherry pick 2.0-beta] some bug fix commit from develop to 2.0-beta (#162)
* fix distributed bug (#160) * update docs configs (#161)
上级
438deb1d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
31 addition
and
6 deletion
+31
-6
README.md
README.md
+2
-0
README_cn.md
README_cn.md
+2
-0
configs/esrgan_psnr_x4_div2k.yaml
configs/esrgan_psnr_x4_div2k.yaml
+2
-2
configs/pix2pix_cityscapes_2gpus.yaml
configs/pix2pix_cityscapes_2gpus.yaml
+4
-1
docs/en_US/tutorials/super_resolution.md
docs/en_US/tutorials/super_resolution.md
+19
-1
ppgan/engine/trainer.py
ppgan/engine/trainer.py
+2
-2
未找到文件。
README.md
浏览文件 @
09ab2ba7
...
...
@@ -45,6 +45,8 @@ GAN-Generative Adversarial Network, was praised by "the Father of Convolutional
*
[
Photo2Cartoon
](
./docs/en_US/tutorials/photo2cartoon.md
)
*
[
Wav2Lip
](
./docs/en_US/tutorials/wav2lip.md
)
*
[
Super_Resolution
](
./docs/en_US/tutorials/super_resolution.md
)
*
[
StyleGAN2
](
./docs/en_US/tutorials/styleganv2.md
)
## Composite Application
...
...
README_cn.md
浏览文件 @
09ab2ba7
...
...
@@ -46,6 +46,8 @@ GAN--生成对抗网络,被“卷积网络之父”**Yann LeCun(杨立昆)
*
[
Photo2Cartoon
](
docs/zh_CN/tutorials/photo2cartoon.md
)
*
[
Wav2Lip
](
docs/zh_CN/tutorials/wav2lip.md
)
*
[
Super_Resolution
](
./docs/en_US/tutorials/super_resolution.md
)
*
[
StyleGAN2
](
./docs/en_US/tutorials/styleganv2.md
)
## 复合应用
...
...
configs/esrgan_psnr_x4_div2k.yaml
浏览文件 @
09ab2ba7
...
...
@@ -18,8 +18,8 @@ model:
dataset
:
train
:
name
:
SRDataset
gt_folder
:
data/DIV2K/DIV2K_train_HR
lq_folder
:
data/DIV2K/DIV2K_train_LR_bicubic/X4
gt_folder
:
data/DIV2K/DIV2K_train_HR
_sub
lq_folder
:
data/DIV2K/DIV2K_train_LR_bicubic/X4
_sub
num_workers
:
4
batch_size
:
16
scale
:
4
...
...
configs/pix2pix_cityscapes_2gpus.yaml
浏览文件 @
09ab2ba7
...
...
@@ -64,7 +64,10 @@ dataset:
preprocess
:
-
name
:
LoadImageFromFile
key
:
pair
-
name
:
Transforms
-
name
:
SplitPairedImage
key
:
pair
paired_keys
:
[
A
,
B
]
-
name
:
Transforms
input_keys
:
[
A
,
B
]
pipeline
:
-
name
:
Resize
...
...
docs/en_US/tutorials/super_resolution.md
浏览文件 @
09ab2ba7
...
...
@@ -51,8 +51,26 @@
```
python data/process_div2k_data.py --data-root data/DIV2K
```
When the program is finished, check whether there are
``DIV2K_train_HR_sub``
,
``X2_sub``
,
``X3_sub``
and
``X4_sub``
directories in the DIV2K directory
```
PaddleGAN
├── data
├── DIV2K
├── DIV2K_train_HR
├── DIV2K_train_HR_sub
├── DIV2K_train_LR_bicubic
| ├──X2
| ├──X2_sub
| ├──X3
| ├──X3_sub
| ├──sX4
| └──X4_sub
├── DIV2K_valid_HR
├── DIV2K_valid_LR_bicubic
...
```
Prepare dataset for realsr df2k model:
#### Prepare dataset for realsr df2k model
Download dataset from
[
NTIRE 2020 RWSR
](
https://competitions.codalab.org/competitions/22220#participate
)
and unzip it to your path.
Unzip Corrupted-tr-x.zip and Corrupted-tr-y.zip to
``PaddleGAN/data/ntire20``
directory.
...
...
ppgan/engine/trainer.py
浏览文件 @
09ab2ba7
...
...
@@ -144,9 +144,9 @@ class Trainer:
self
.
best_metric
=
{}
def
distributed_data_parallel
(
self
):
strategy
=
paddle
.
distributed
.
prepare_context
()
paddle
.
distributed
.
init_parallel_env
()
for
net_name
,
net
in
self
.
model
.
nets
.
items
():
self
.
model
.
nets
[
net_name
]
=
paddle
.
DataParallel
(
net
,
strategy
)
self
.
model
.
nets
[
net_name
]
=
paddle
.
DataParallel
(
net
)
def
learning_rate_scheduler_step
(
self
):
if
isinstance
(
self
.
model
.
lr_scheduler
,
dict
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录