realtime style transfer
=====
This folder contains realtime style transfer examples and benchmark results on Qualcomm Snapdragon 821 and 845.
Introduction
---
This realtime style tranfer model was compressed and optimized from [here](https://github.com/lengstrom/fast-style-transfer) (fast style transfer project).
Compared to the original fast style transfer:
- realtime: 10x faster .
- tiny(90kB): 98% model size compression from fast style transfer(6.7MB).
- easier to deploy: support variable input size.
We used a step-traning method to train this model, and the step-training codes are [here](https://github.com/TonyMou/fast-style-transfer/tree/support-step-training)(step-training).
Benchmark:
---
The following is the realtime style transfer running latency on Mi5S (Snapdragon 821) and MIX2s (Snapdragon 845), using GPU runtime.
| Resolution | 821 (ms) | 845 (ms)|
| :--------: | :----------: | :------------: |
| 480x640 | 53.733 | 32.559 |
| 720x1280 | 161.380 | 96.855 |
| 960x1280 | 214.966 | 128.729 |
| 1080x1920 | 362.927 | 223.070 |
## Examples:
Compared with [fast style transfer](https://github.com/lengstrom/fast-style-transfer) .
Content image:
<div align="center">
<img src="imgs/inputs/chicago.jpg" width = "320" height = "240" alt="chicago" />
</div>
Styles and results:
| style | fast style transfer | realtime style transfer |
| :---: | :----: | :----: |
|<img src="imgs/styles/la_muse.jpg" height="240" > | <img src="imgs/tf-results/chicago_la_muse.jpg"> | ![](imgs/results/la_muse/chicago.jpg)|
|<img src="imgs/styles/wave.jpg" height="240" > | ![](imgs/tf-results/chicago_wave.jpg)| ![](imgs/results/wave/chicago.jpg) |
| <img src="imgs/styles/the_scream.jpg" height="240" > | ![](imgs/tf-results/chicago_scream.jpg)| ![](imgs/results/scream/chicago.jpg) |
| <img src="imgs/styles/udnie.jpg" height="240" > | ![](imgs/tf-results/chicago_udnie.jpg)| ![](imgs/results/udnie/chicago.jpg) |
## Other examples
| input | femme | udnie | wave | wreck | la_muse | scream |
| :---: | :---: | :---: | :--: | :---: | :-----: | :----: |
| styles | <img src="imgs/styles/femme.jpg" width="320"> | <img src="imgs/styles/udnie.jpg" width="320"> | <img src="imgs/styles/wave.jpg" width="320"> | <img src="imgs/styles/the_shipwreck_of_the_minotaur.jpg" width="320"> | <img src="imgs/styles/la_muse.jpg" width="320"> | <img src="imgs/styles/the_scream.jpg" width="320"> |
| ![](imgs/inputs/areuok.jpg) | ![](imgs/results/femme/areuok.jpg) | ![](imgs/results/udnie/areuok.jpg) | ![](imgs/results/wave/areuok.jpg) | ![](imgs/results/wreck/areuok.jpg) | ![](imgs/results/la_muse/areuok.jpg) | ![](imgs/results/scream/areuok.jpg) |
| ![](imgs/inputs/model1.jpg) | ![](imgs/results/femme/girl1.jpg) |![](imgs/results/udnie/girl1.jpg) |![](imgs/results/wave/girl1.jpg) |![](imgs/results/wreck/girl1.jpg) |![](imgs/results/la_muse/girl1.jpg) |![](imgs/results/scream/girl1.jpg) |
| ![](imgs/inputs/model2.jpg) | ![](imgs/results/femme/girl2.jpg) | ![](imgs/results/udnie/girl2.jpg) | ![](imgs/results/wave/girl2.jpg) | ![](imgs/results/wreck/girl2.jpg) | ![](imgs/results/la_muse/girl2.jpg) | ![](imgs/results/scream/girl2.jpg) |
| ![](imgs/inputs/Louvre.jpg) | ![](imgs/results/femme/Louvre.jpg) | ![](imgs/results/udnie/Louvre.jpg) | ![](imgs/results/wave/Louvre.jpg) | ![](imgs/results/wreck/Louvre.jpg) | ![](imgs/results/la_muse/Louvre.jpg) | ![](imgs/results/scream/Louvre.jpg) |
| ![](imgs/inputs/mi-office.jpg) | ![](imgs/results/femme/mi-office.jpg) | ![](imgs/results/udnie/mi-office.jpg) | ![](imgs/results/wave/mi-office.jpg) | ![](imgs/results/wreck/mi-office.jpg) | ![](imgs/results/la_muse/mi-office.jpg) | ![](imgs/results/scream/mi-office.jpg) |
<!--
| input | femme| udnie | wave | wreck | la_muse | scream |
| :---: | :---: | :---: | :---: | :---: | :---: |
|input | ![](inputs/areuok.jpg) | ![](inputs/model1.jpg) | ![](inputs/model2.jpg) | ![](inputs/Louvre.jpg) | ![](inputs/mi-office.jpg) |
| <img src="styles/femme.jpg" width="320" > | ![](results/femme/areuok.jpg) | ![](results/femme/girl1.jpg) |![](results/femme/girl2.jpg) |![](results/femme/Louvre.jpg) |![](results/femme/mi-office.jpg) |
|<img src="styles/udnie.jpg" width="320" > | ![](results/udnie/areuok.jpg) |![](results/udnie/girl1.jpg) | ![](results/udnie/girl2.jpg) | ![](results/udnie/Louvre.jpg) |![](results/udnie/mi-office.jpg) |
| <img src="styles/wave.jpg" width="320" > | ![](results/wave/areuok.jpg) |![](results/wave/girl1.jpg) |![](results/wave/girl2.jpg) |![](results/wave/Louvre.jpg) | ![](results/wave/mi-office.jpg) |
|<img src="styles/the_shipwreck_of_the_minotaur.jpg" width="320"> | ![](results/wreck/areuok.jpg) |![](results/wreck/girl1.jpg) |![](results/wreck/girl2.jpg) | ![](results/wreck/Louvre.jpg) | ![](results/wreck/mi-office.jpg) |
|<img src="styles/la_muse.jpg" width="320" > | ![](results/la_muse/areuok.jpg) | ![](results/la_muse/girl1.jpg) | ![](results/la_muse/girl2.jpg) | ![](results/la_muse/Louvre.jpg) |![](results/la_muse/mi-office.jpg) |
| <img src="styles/the_scream.jpg" width="320" >|![](results/scream/areuok.jpg) |![](results/scream/girl1.jpg) |![](results/scream/girl2.jpg) | ![](results/scream/Louvre.jpg) |![](results/scream/mi-office.jpg) |
-->
<!--
Udnie Style:
<div align="center">
<img src="styles/udnie.jpg" width = "256" height = "256" alt="udnie" />
</div>
| input | output|
| :---: | :---: |
| ![areuok](inputs/areuok.jpg) | ![](results/udnie/areuok.jpg)|
| ![](inputs/model1.jpg) | ![](results/udnie/girl1.jpg) |
| ![](inputs/model2.jpg)| ![](results/udnie/girl2.jpg) |
| ![](inputs/Louvre.jpg)| ![](results/udnie/Louvre.jpg) |
| ![](inputs/mi-office.jpg)| ![](results/udnie/mi-office.jpg) |
Shipwreck Style:
<div align="center">
<img src="styles/the_shipwreck_of_the_minotaur.jpg" width = "256" height = "256" alt="wreck" />
</div>
| input | output|
| :---: | :---: |
| ![areuok](inputs/areuok.jpg) | ![](results/wreck/areuok.jpg)|
| ![](inputs/model1.jpg) | ![](results/wreck/girl1.jpg) |
| ![](inputs/model2.jpg)| ![](results/wreck/girl2.jpg) |
| ![](inputs/Louvre.jpg)| ![](results/wreck/Louvre.jpg) |
| ![](inputs/mi-office.jpg)| ![](results/wreck/mi-office.jpg) |
Wave Style:
<div align="center">
<img src="styles/wave.jpg" width = "464" height = "257" alt="wave" />
</div>
| input | output|
| :---: | :---: |
| ![areuok](inputs/areuok.jpg) | ![](results/wave/areuok.jpg)|
| ![](inputs/model1.jpg) | ![](results/wave/girl1.jpg) |
| ![](inputs/model2.jpg)| ![](results/wave/girl2.jpg) |
| ![](inputs/Louvre.jpg)| ![](results/wave/Louvre.jpg) |
| ![](inputs/mi-office.jpg)| ![](results/wave/mi-office.jpg) |
la muse Style:
<div align="center">
<img src="styles/la_muse.jpg" width = "256" height = "256" alt="wave" />
</div>
| input | output|
| :---: | :---: |
| ![areuok](inputs/areuok.jpg) | ![](results/la_muse/areuok.jpg)|
| ![](inputs/model1.jpg) | ![](results/la_muse/girl1.jpg) |
| ![](inputs/model2.jpg)| ![](results/la_muse/girl2.jpg) |
| ![](inputs/Louvre.jpg)| ![](results/la_muse/Louvre.jpg) |
| ![](inputs/mi-office.jpg)| ![](results/la_muse/mi-office.jpg) |
Scream Style:
<div align="center">
<img src="styles/the_scream.jpg" width = "256" height = "256" alt="scream" />
</div>
| input | output|
| :---: | :---: |
| ![areuok](inputs/areuok.jpg) | ![](results/scream/areuok.jpg)|
| ![](inputs/model1.jpg) | ![](results/scream/girl1.jpg) |
| ![](inputs/model2.jpg)| ![](results/scream/girl2.jpg) |
| ![](inputs/Louvre.jpg)| ![](results/scream/Louvre.jpg) |
| ![](inputs/mi-office.jpg)| ![](results/scream/mi-office.jpg) |
-->
没有合适的资源?快使用搜索试试~ 我知道了~
移动AI计算引擎模型动物园_python_代码_下载
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共151个文件
jpg:73个
yml:56个
md:18个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 114 浏览量
2022-07-02
18:18:53
上传
评论
收藏 5.69MB ZIP 举报
温馨提示
该项目托管移动 AI 计算引擎 (MACE) 模型。 介绍 每个yml部署脚本都描述了一个部署案例,它将生成一个或一组(如果指定了多个 ABI)静态库和头文件。要了解如何添加新模型
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![whl](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![whl](https://img-home.csdnimg.cn/images/20210720083646.png)
![whl](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 151 条
- 1
- 2
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
快撑死的鱼
- 粉丝: 1w+
- 资源: 9152
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)