Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
5e2cbb70
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
接近 2 年 前同步成功
通知
284
Star
12117
Fork
2091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
200
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleHub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
200
Issue
200
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5e2cbb70
编写于
3月 08, 2022
作者:
C
chenjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix according to review
上级
d880de8b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
17 deletion
+18
-17
modules/image/Image_gan/style_transfer/psgan/README.md
modules/image/Image_gan/style_transfer/psgan/README.md
+2
-2
modules/image/Image_gan/style_transfer/psgan/model.py
modules/image/Image_gan/style_transfer/psgan/model.py
+5
-7
modules/image/Image_gan/style_transfer/psgan/module.py
modules/image/Image_gan/style_transfer/psgan/module.py
+10
-8
modules/image/Image_gan/style_transfer/psgan/util.py
modules/image/Image_gan/style_transfer/psgan/util.py
+1
-0
未找到文件。
modules/image/Image_gan/style_transfer/psgan/README.md
浏览文件 @
5e2cbb70
...
...
@@ -16,7 +16,7 @@
-
### 应用效果展示
-
样例结果示例:
<p
align=
"center"
>
<img
src=
"https://user-images.githubusercontent.com/22424850/1
45003964-6d6572e0-3103-4898-a738-eb6c61c90be4.jp
g"
width =
"30%"
hspace=
'10'
/>
<img
src=
"https://user-images.githubusercontent.com/22424850/1
57190651-595b6964-97c5-4b0b-ac0a-c30c8520a972.pn
g"
width =
"30%"
hspace=
'10'
/>
<br
/>
输入内容图形
<br
/>
...
...
@@ -24,7 +24,7 @@
<br
/>
输入妆容图形
<br
/>
<img
src=
"https://user-images.githubusercontent.com/22424850/1
45003965-288d56f9-49a2-43cb-8647-4a112a8e0dfb
.png"
width =
"30%"
hspace=
'10'
/>
<img
src=
"https://user-images.githubusercontent.com/22424850/1
57190800-b1dd79d4-0eca-4b36-b091-6fcd2c00dcf6
.png"
width =
"30%"
hspace=
'10'
/>
<br
/>
输出图像
<br
/>
...
...
modules/image/Image_gan/style_transfer/psgan/model.py
浏览文件 @
5e2cbb70
...
...
@@ -11,23 +11,21 @@
# 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.
import
argparse
import
os
import
sys
import
argparse
from
pathlib
import
Path
from
PIL
import
Image
import
numpy
as
np
import
paddle
import
paddle.vision.transforms
as
T
from
paddle.utils.download
import
get_weights_path_from_url
import
ppgan.faceutils
as
futils
from
ppgan.utils.options
import
parse_args
from
paddle.utils.download
import
get_weights_path_from_url
from
PIL
import
Image
from
ppgan.models.builder
import
build_model
from
ppgan.utils.config
import
get_config
from
ppgan.utils.filesystem
import
load
from
ppgan.
models.builder
import
build_model
from
ppgan.
utils.options
import
parse_args
from
ppgan.utils.preprocess
import
*
...
...
modules/image/Image_gan/style_transfer/psgan/module.py
浏览文件 @
5e2cbb70
...
...
@@ -11,22 +11,24 @@
# 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.
import
os
import
argparse
import
copy
import
os
import
paddle
import
paddlehub
as
hub
from
paddlehub.module.module
import
moduleinfo
,
runnable
,
serving
import
numpy
as
np
import
cv2
from
skimage.io
import
imread
from
skimage.transform
import
rescale
,
resiz
e
import
numpy
as
np
import
paddl
e
from
ppgan.utils.config
import
get_config
from
skimage.io
import
imread
from
skimage.transform
import
rescale
from
skimage.transform
import
resize
import
paddlehub
as
hub
from
.model
import
PSGANPredictor
from
.util
import
base64_to_cv2
from
paddlehub.module.module
import
moduleinfo
from
paddlehub.module.module
import
runnable
from
paddlehub.module.module
import
serving
@
moduleinfo
(
name
=
"psgan"
,
type
=
"CV/gan"
,
author
=
"paddlepaddle"
,
author_email
=
""
,
summary
=
""
,
version
=
"1.0.0"
)
...
...
modules/image/Image_gan/style_transfer/psgan/util.py
浏览文件 @
5e2cbb70
import
base64
import
cv2
import
numpy
as
np
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录