Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleGAN
提交
600a7999
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看板
提交
600a7999
编写于
5月 27, 2021
作者:
L
LielinJiang
提交者:
LielinJiang
5月 28, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cherrypick from develop
上级
244b0225
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
42 addition
and
10 deletion
+42
-10
docs/en_US/install.md
docs/en_US/install.md
+3
-3
docs/zh_CN/install.md
docs/zh_CN/install.md
+18
-1
ppgan/__init__.py
ppgan/__init__.py
+2
-0
ppgan/datasets/builder.py
ppgan/datasets/builder.py
+0
-4
ppgan/models/edvr_model.py
ppgan/models/edvr_model.py
+1
-1
ppgan/version.py
ppgan/version.py
+15
-0
setup.py
setup.py
+3
-1
未找到文件。
docs/en_US/install.md
浏览文件 @
600a7999
...
...
@@ -2,13 +2,13 @@
### requirements
*
PaddlePaddle >= 2.
0
.0
*
PaddlePaddle >= 2.
1
.0
*
Python >= 3.6
*
CUDA >=
9.0
*
CUDA >=
10.1
### 1. Install PaddlePaddle
```
pip install -U paddlepaddle-gpu
==2.0.0
pip install -U paddlepaddle-gpu
```
Note: command above will install paddle with cuda10.2, if your installed cuda is different, please visit home page of
[
paddlepaddle
](
https://www.paddlepaddle.org.cn/install/quick
)
for more help.
...
...
docs/zh_CN/install.md
浏览文件 @
600a7999
## 安装PaddleGAN
# 安装文档
本文档包含了如何安装PaddleGAN以及相关依赖,更多产品简介请参考
[
README
](
https://github.com/PaddlePaddle/PaddleGAN/blob/develop/README_cn.md
)
。
## 环境依赖
-
PaddlePaddle >= 2.1.0
-
Python >= 3.6
-
CUDA >= 10.1
## 安装PaddlePaddle
```
# CUDA10.1
python -m pip install paddlepaddle-gpu==2.1.0.post101 -f https://mirror.baidu.com/pypi/simple
# CPU
python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
```
### 要求
...
...
ppgan/__init__.py
浏览文件 @
600a7999
...
...
@@ -11,3 +11,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
.version
import
ppgan_version
as
__version__
ppgan/datasets/builder.py
浏览文件 @
600a7999
...
...
@@ -34,8 +34,6 @@ def build_dataloader(cfg, is_train=True, distributed=True):
name
=
cfg_
.
pop
(
'name'
)
dataset
=
DATASETS
.
get
(
name
)(
**
cfg_
)
place
=
paddle
.
CUDAPlace
(
ParallelEnv
().
dev_id
)
\
if
ParallelEnv
().
nranks
>
1
else
paddle
.
CUDAPlace
(
0
)
if
distributed
:
sampler
=
DistributedBatchSampler
(
dataset
,
...
...
@@ -45,7 +43,6 @@ def build_dataloader(cfg, is_train=True, distributed=True):
dataloader
=
paddle
.
io
.
DataLoader
(
dataset
,
batch_sampler
=
sampler
,
places
=
place
,
num_workers
=
num_workers
,
use_shared_memory
=
use_shared_memory
)
else
:
...
...
@@ -53,7 +50,6 @@ def build_dataloader(cfg, is_train=True, distributed=True):
batch_size
=
batch_size
,
shuffle
=
True
if
is_train
else
False
,
drop_last
=
True
if
is_train
else
False
,
places
=
place
,
use_shared_memory
=
False
,
num_workers
=
num_workers
)
...
...
ppgan/models/edvr_model.py
浏览文件 @
600a7999
...
...
@@ -41,7 +41,7 @@ class EDVRModel(BaseSRModel):
init_edvr_weight
(
self
.
nets
[
'generator'
])
def
setup_input
(
self
,
input
):
self
.
lq
=
paddle
.
to_tensor
(
input
[
'lq'
])
self
.
lq
=
input
[
'lq'
]
self
.
visual_items
[
'lq'
]
=
self
.
lq
[:,
2
,
:,
:,
:]
self
.
visual_items
[
'lq-2'
]
=
self
.
lq
[:,
0
,
:,
:,
:]
self
.
visual_items
[
'lq-1'
]
=
self
.
lq
[:,
1
,
:,
:,
:]
...
...
ppgan/version.py
0 → 100644
浏览文件 @
600a7999
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
ppgan_version
=
'2.0.0'
setup.py
浏览文件 @
600a7999
...
...
@@ -16,6 +16,8 @@ from setuptools import setup
from
setuptools
import
find_packages
from
io
import
open
from
ppgan
import
__version__
with
open
(
'requirements.txt'
,
encoding
=
"utf-8-sig"
)
as
f
:
requirements
=
f
.
readlines
()
...
...
@@ -32,7 +34,7 @@ setup(
include_package_data
=
True
,
entry_points
=
{
"console_scripts"
:
[
"paddlegan= paddlegan.paddlegan:main"
]},
author
=
'PaddlePaddle Author'
,
version
=
'2.0.0-beta'
,
version
=
__version__
,
install_requires
=
requirements
,
license
=
'Apache License 2.0'
,
description
=
'Awesome GAN toolkits based on PaddlePaddle'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录