Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleGAN
提交
0d66d0ac
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看板
未验证
提交
0d66d0ac
编写于
2月 25, 2022
作者:
W
wangna11BD
提交者:
GitHub
2月 25, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix singan tipc (#586)
上级
581da7e9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
11 deletion
+11
-11
test_tipc/prepare.sh
test_tipc/prepare.sh
+11
-11
未找到文件。
test_tipc/prepare.sh
浏览文件 @
0d66d0ac
#!/bin/bash
FILENAME
=
$1
# MODE be one of ['lite_train_lite_infer' 'lite_train_whole_infer' 'whole_train_whole_infer',
# MODE be one of ['lite_train_lite_infer' 'lite_train_whole_infer' 'whole_train_whole_infer',
# 'whole_infer']
MODE
=
$2
...
...
@@ -36,11 +36,11 @@ if [ ${MODE} = "benchmark_train" ];then
MODE
=
"lite_train_lite_infer"
fi
# MODE be one of ['lite_train_lite_infer' 'lite_train_whole_infer' 'whole_train_whole_infer',
# MODE be one of ['lite_train_lite_infer' 'lite_train_whole_infer' 'whole_train_whole_infer',
# 'whole_infer
if
[
${
MODE
}
=
"lite_train_lite_infer"
]
;
then
case
${
model_name
}
in
Pix2pix
)
rm
-rf
./data/pix2pix
*
...
...
@@ -67,12 +67,12 @@ if [ ${MODE} = "lite_train_lite_infer" ];then
wget
-nc
-P
./data/ https://paddlegan.bj.bcebos.com/datasets/DIV2KandSet14.tar
--no-check-certificate
cd
./data/
&&
tar
xf DIV2KandSet14.tar
&&
cd
../
;;
singan
)
rm
-rf
./data/
SinGAN
*
rm
-rf
./data/
singan
*
wget
-nc
-P
./data/ https://paddlegan.bj.bcebos.com/datasets/singan-official_images.zip
--no-check-certificate
cd
./data/
&&
unzip
-q
singan-official_images.zip
&&
cd
../
;;
cd
./data/
&&
unzip
-q
singan-official_images.zip
&&
cd
../
mkdir
-p
./data/singan
mv
./data/SinGAN-official_images/Images/stone.png ./data/singan
esac
mv
./data/SinGAN-official_images/Images/stone.png ./data/singan
;;
esac
elif
[
${
MODE
}
=
"whole_train_whole_infer"
]
;
then
if
[
${
model_name
}
==
"pix2pix"
]
;
then
rm
-rf
./data/facades
*
...
...
@@ -83,7 +83,7 @@ elif [ ${MODE} = "whole_train_whole_infer" ];then
wget
-nc
-P
./data/ https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/horse2zebra.zip
--no-check-certificate
cd
./data/
&&
unzip horse2zebra.zip
&&
cd
../
elif
[
${
model_name
}
==
"singan"
]
;
then
rm
-rf
./data/
SinGAN
*
rm
-rf
./data/
singan
*
wget
-nc
-P
./data/ https://paddlegan.bj.bcebos.com/datasets/singan-official_images.zip
--no-check-certificate
cd
./data/
&&
unzip
-q
singan-official_images.zip
&&
cd
../
mkdir
-p
./data/singan
...
...
@@ -115,7 +115,7 @@ elif [ ${MODE} = "lite_train_whole_infer" ];then
wget
-nc
-P
./data/ https://paddlegan.bj.bcebos.com/datasets/reds_lite.tar
--no-check-certificate
cd
./data/
&&
tar
xf reds_lite.tar
&&
cd
../
elif
[
${
model_name
}
==
"singan"
]
;
then
rm
-rf
./data/
SinGAN
*
rm
-rf
./data/
singan
*
wget
-nc
-P
./data/ https://paddlegan.bj.bcebos.com/datasets/singan-official_images.zip
--no-check-certificate
cd
./data/
&&
unzip
-q
singan-official_images.zip
&&
cd
../
mkdir
-p
./data/singan
...
...
@@ -164,7 +164,7 @@ elif [ ${MODE} = "whole_infer" ];then
cd
./inference
&&
tar
xf msvsr.tar
&&
cd
../
cd
./data/
&&
tar
xf reds_lite.tar
&&
cd
../
elif
[
${
model_name
}
==
"singan"
]
;
then
rm
-rf
./data/
SinGAN
*
rm
-rf
./data/
singan
*
wget
-nc
-P
./data/ https://paddlegan.bj.bcebos.com/datasets/singan-official_images.zip
--no-check-certificate
wget
-nc
-P
./inference https://paddlegan.bj.bcebos.com/datasets/singan.zip
--no-check-certificate
cd
./data/
&&
unzip
-q
singan-official_images.zip
&&
cd
../
...
...
@@ -172,5 +172,5 @@ elif [ ${MODE} = "whole_infer" ];then
mkdir
-p
./data/singan
mv
./data/SinGAN-official_images/Images/stone.png ./data/singan
fi
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录