Skip to content

Commit 60ff5b4

Browse files
authored
Merge branch 'develop' into develop
2 parents 9a2f4bc + 97c1d59 commit 60ff5b4

File tree

7 files changed

+29
-14
lines changed

7 files changed

+29
-14
lines changed

docs/en_US/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
### requirements
44

5-
* PaddlePaddle >= 2.0.0
5+
* PaddlePaddle >= 2.1.0
66
* Python >= 3.6
7-
* CUDA >= 9.0
7+
* CUDA >= 10.1
88

99
### 1. Install PaddlePaddle
1010
```
11-
pip install -U paddlepaddle-gpu==2.0.0
11+
pip install -U paddlepaddle-gpu
1212
```
1313

1414
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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
本文档包含了如何安装PaddleGAN以及相关依赖,更多产品简介请参考[README](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/README_cn.md)
33

44
## 环境依赖
5-
- PaddlePaddle >= 2.0.0
5+
6+
- PaddlePaddle >= 2.1.0
67
- Python >= 3.6
7-
- CUDA >= 9.0
8+
- CUDA >= 10.1
9+
810

911
## 安装PaddlePaddle
1012

1113
```
12-
# CUDA9.0
13-
python -m pip install paddlepaddle-gpu==2.0.1.post90 -i https://mirror.baidu.com/pypi/simple
1414
1515
# CUDA10.1
16-
python -m pip install paddlepaddle-gpu==2.0.1.post101 -f https://mirror.baidu.com/pypi/simple
16+
python -m pip install paddlepaddle-gpu==2.1.0.post101 -f https://mirror.baidu.com/pypi/simple
1717
1818
# CPU
1919
python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

ppgan/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
15+
from .version import ppgan_version as __version__

ppgan/datasets/builder.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def build_dataloader(cfg, is_train=True, distributed=True):
3434
name = cfg_.pop('name')
3535

3636
dataset = DATASETS.get(name)(**cfg_)
37-
place = paddle.CUDAPlace(ParallelEnv().dev_id) \
38-
if ParallelEnv().nranks > 1 else paddle.CUDAPlace(0)
3937

4038
if distributed:
4139
sampler = DistributedBatchSampler(dataset,
@@ -45,15 +43,13 @@ def build_dataloader(cfg, is_train=True, distributed=True):
4543

4644
dataloader = paddle.io.DataLoader(dataset,
4745
batch_sampler=sampler,
48-
places=place,
4946
num_workers=num_workers,
5047
use_shared_memory=use_shared_memory)
5148
else:
5249
dataloader = paddle.io.DataLoader(dataset,
5350
batch_size=batch_size,
5451
shuffle=True if is_train else False,
5552
drop_last=True if is_train else False,
56-
places=place,
5753
use_shared_memory=False,
5854
num_workers=num_workers)
5955

ppgan/models/edvr_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, generator, tsa_iter, pixel_criterion=None):
4141
init_edvr_weight(self.nets['generator'])
4242

4343
def setup_input(self, input):
44-
self.lq = paddle.to_tensor(input['lq'])
44+
self.lq = input['lq']
4545
self.visual_items['lq'] = self.lq[:, 2, :, :, :]
4646
self.visual_items['lq-2'] = self.lq[:, 0, :, :, :]
4747
self.visual_items['lq-1'] = self.lq[:, 1, :, :, :]

ppgan/version.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
ppgan_version = '2.0.0'

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from setuptools import find_packages
1717
from io import open
1818

19+
from ppgan import __version__
20+
1921
with open('requirements.txt', encoding="utf-8-sig") as f:
2022
requirements = f.readlines()
2123

@@ -32,7 +34,7 @@ def readme():
3234
include_package_data=True,
3335
entry_points={"console_scripts": ["paddlegan= paddlegan.paddlegan:main"]},
3436
author='PaddlePaddle Author',
35-
version='2.0.0-beta',
37+
version=__version__,
3638
install_requires=requirements,
3739
license='Apache License 2.0',
3840
description='Awesome GAN toolkits based on PaddlePaddle',

0 commit comments

Comments
 (0)