Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleHub
提交
9e62d635
P
PaddleHub
项目概览
PaddlePaddle
/
PaddleHub
大约 1 年 前同步成功
通知
282
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看板
提交
9e62d635
编写于
3月 08, 2022
作者:
C
chenjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix according to review
上级
e4a3baad
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
15 deletion
+18
-15
modules/image/Image_gan/style_transfer/lapstyle_ocean/README.md
...s/image/Image_gan/style_transfer/lapstyle_ocean/README.md
+2
-2
modules/image/Image_gan/style_transfer/lapstyle_ocean/model.py
...es/image/Image_gan/style_transfer/lapstyle_ocean/model.py
+6
-6
modules/image/Image_gan/style_transfer/lapstyle_ocean/module.py
...s/image/Image_gan/style_transfer/lapstyle_ocean/module.py
+9
-7
modules/image/Image_gan/style_transfer/lapstyle_ocean/util.py
...les/image/Image_gan/style_transfer/lapstyle_ocean/util.py
+1
-0
未找到文件。
modules/image/Image_gan/style_transfer/lapstyle_ocean/README.md
浏览文件 @
9e62d635
...
...
@@ -48,8 +48,8 @@
-
```shell
$ hub install lapstyle_ocean
```
-
如您安装时遇到问题,可参考:
[
零基础windows安装
](
../../../../docs/docs_ch/get_start/windows_quickstart.md
)
|
[
零基础Linux安装
](
../../../../
docs/docs_ch/get_start/linux_quickstart.md
)
|
[
零基础MacOS安装
](
../../../../docs/docs_ch/get_start/mac_quickstart.md
)
-
如您安装时遇到问题,可参考:
[
零基础windows安装
](
../../../../
../
docs/docs_ch/get_start/windows_quickstart.md
)
|
[
零基础Linux安装
](
../../../../
../docs/docs_ch/get_start/linux_quickstart.md
)
|
[
零基础MacOS安装
](
../
../../../../docs/docs_ch/get_start/mac_quickstart.md
)
## 三、模型API预测
...
...
modules/image/Image_gan/style_transfer/lapstyle_ocean/model.py
浏览文件 @
9e62d635
...
...
@@ -11,19 +11,19 @@
# 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
cv2
as
cv
import
numpy
as
np
import
urllib.request
from
PIL
import
Image
import
cv2
as
cv
import
numpy
as
np
import
paddle
import
paddle.nn.functional
as
F
from
paddle.vision.transforms
import
functional
from
PIL
import
Image
from
ppgan.models.generators
import
DecoderNet
from
ppgan.models.generators
import
Encoder
from
ppgan.models.generators
import
RevisionNet
from
ppgan.utils.visual
import
tensor2img
from
ppgan.models.generators
import
DecoderNet
,
Encoder
,
RevisionNet
def
img
(
img
):
...
...
modules/image/Image_gan/style_transfer/lapstyle_ocean/module.py
浏览文件 @
9e62d635
...
...
@@ -11,21 +11,23 @@
# 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
import
numpy
as
np
import
paddle
from
skimage.io
import
imread
from
skimage.transform
import
rescale
,
resize
from
skimage.transform
import
rescale
from
skimage.transform
import
resize
import
paddlehub
as
hub
from
.model
import
LapStylePredictor
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
(
...
...
modules/image/Image_gan/style_transfer/lapstyle_ocean/util.py
浏览文件 @
9e62d635
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录