Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleGAN
提交
912b96d0
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看板
提交
912b96d0
编写于
10月 12, 2020
作者:
L
LielinJiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update readme
上级
2354ab9d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
150 addition
and
20 deletion
+150
-20
README.md
README.md
+42
-20
README_cn.md
README_cn.md
+53
-0
docs/data_prepare.md
docs/data_prepare.md
+36
-0
docs/get_started.md
docs/get_started.md
+19
-0
未找到文件。
README.md
浏览文件 @
912b96d0
English |
[
简体中文
](
./README.md
)
English |
[
简体中文
](
./README
_cn
.md
)
# PaddleGAN
still under development!!
PaddleGAN is an development kit of Generative Adversarial Network based on PaddlePaddle.
## Download Dataset
This script could download several dataset for paired images for image2image translation task.
![](
./docs/imgs/color_sr_peking.gif
)
```
cd PaddleGAN/script/
bash pix2pix_download.sh [cityscapes|facades|edges2handbags|edges2shoes|maps]
```
## Train
```
python -u tools/main.py --config-file configs/cyclegan-cityscapes.yaml
```
Features:
continue train from last checkpoint
```
python -u tools/main.py --config-file configs/cyclegan-cityscapes.yaml --resume your_checkpoint_path
```
-
Highly Flexible:
Components are designed to be modular. Model architectures, as well as data
preprocess pipelines, can be easily customized with simple configuration
changes.
-
Rich applications:
PaddleGAN provides rich of applications, such as image generation, image restore, image colorization, video interpolate, makeup shifter.
## Install
### 1. install paddlepaddle
PaddleGAN work with:
*
PaddlePaddle >= 2.0.0-rc
*
Python >= 3.5+
multiple gpus train:
```
CUDA_VISIBLE_DEVICES=0,1 python -m paddle.distributed.launch tools/main.py --config-file configs/pix2pix-cityscapes.yaml
pip install -U paddlepaddle-gpu
```
##
Evaluate
##
# 2. install ppgan
```
python tools/main.py --config-file configs/cyclegan-cityscapes.yaml --evaluate-only --load your_weight_path
git clone https://github.com/PaddlePaddle/PaddleGAN
cd PaddleGAN
pip install -v -e . # or "python setup.py develop"
```
## Data Prepare
Please refer to
[
data prepare
](
./docs/data_prepare.md
)
for dataset preparation.
## Get Start
Please refer
[
get stated
](
./docs/get_started.md
)
for the basic usage of PaddleGAN.
## License
PaddleGAN is released under the
[
Apache 2.0 license
](
LICENSE
)
.
## Contributing
Contributions are highly welcomed and we would really appreciate your feedback!!
README_cn.md
0 → 100644
浏览文件 @
912b96d0
[
English
](
./README.md
)
| 简体中文
# PaddleGAN
PaddleGAN 是一个基于飞桨的生成对抗网络开发工具包.
![](
./docs/imgs/color_sr_peking.gif
)
特性:
-
高度的灵活性:
模块化设计,解耦各个网络组件,开发者轻松搭建、试用各种检测模型及优化策略,快速得到高性能、定制化的算法。
-
丰富的应用:
PaddleGAN 提供了非常多的应用,比如说图像生成,图像修复,图像上色,视频补帧,人脸妆容迁移等.
## 安装
### 1. 安装 paddlepaddle
PaddleGAN 所需的版本:
*
PaddlePaddle >= 2.0.0-rc
*
Python >= 3.5+
```
pip install -U paddlepaddle-gpu
```
### 2. 安装ppgan
```
git clone https://github.com/PaddlePaddle/PaddleGAN
cd PaddleGAN
pip install -v -e . # or "python setup.py develop"
```
## 数据准备
请参考
[
数据准备
](
./docs/data_prepare.md
)
来准备对应的数据.
## 快速开始
训练,预测,推理等请参考
[
快速开始
](
./docs/get_started.md
)
.
## 许可证书
本项目的发布受
[
Apache 2.0 license
](
LICENSE
)
许可认证。
## 贡献代码
我们非常欢迎你可以为PaddleGAN提供代码,也十分感谢你的反馈。
docs/data_prepare.md
0 → 100644
浏览文件 @
912b96d0
## data prepare
It is recommended to symlink the dataset root to
`$PaddleGAN/data`
.
```
PaddleGAN
|-- configs
|-- data
| |-- cityscapes
| | ├── test
| | ├── testA
| | ├── testB
| | ├── train
| | ├── trainA
| | └── trainB
| ├── horse2zebra
| | ├── testA
| | ├── testB
| | ├── trainA
| | └── trainB
| └── facades
| ├── test
| ├── train
| └── val
|-- docs
|-- ppgan
|-- tools
```
### cyclegan datasets
more dataset for cyclegan you can download from
[
here
](
https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/
)
### pix2pix datasets
more dataset for pix2pix you can download from
[
here
](
hhttps://people.eecs.berkeley.edu/~tinghuiz/projects/pix2pix/datasets/
)
docs/get_started.md
0 → 100644
浏览文件 @
912b96d0
## Train
```
python -u tools/main.py --config-file configs/cyclegan_cityscapes.yaml
```
continue train from last checkpoint
```
python -u tools/main.py --config-file configs/cyclegan_cityscapes.yaml --resume your_checkpoint_path
```
multiple gpus train:
```
CUDA_VISIBLE_DEVICES=0,1 python -m paddle.distributed.launch tools/main.py --config-file configs/pix2pix_cityscapes.yaml
```
## Evaluate
```
python tools/main.py --config-file configs/cyclegan_cityscapes.yaml --evaluate-only --load your_weight_path
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录