<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ONNX Runtime Web &#8211; 天地一沙鸥</title>
	<atom:link href="https://haoluobo.com/tag/onnx-runtime-web/feed/" rel="self" type="application/rss+xml" />
	<link>https://haoluobo.com</link>
	<description>to be continue....</description>
	<lastBuildDate>Thu, 14 Oct 2021 13:20:00 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>在线使用的图片风格迁移工具</title>
		<link>https://haoluobo.com/2021/10/style-transformer/</link>
		
		<dc:creator><![CDATA[vicalloy]]></dc:creator>
		<pubDate>Thu, 14 Oct 2021 13:20:00 +0000</pubDate>
				<category><![CDATA[vicalloy的庄家]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[ONNX Runtime Web]]></category>
		<category><![CDATA[React]]></category>
		<category><![CDATA[深度学习]]></category>
		<guid isPermaLink="false">/?p=12007</guid>

					<description><![CDATA[近期研究 ONNX Runtime Web 做的一个小东西。很多代码都“借鉴”于其他开源项目，解决了图片变形等 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>近期研究 ONNX Runtime Web 做的一个小东西。很多代码都“借鉴”于其他开源项目，解决了图片变形等问题。</p>


<p>使用深度学习模型做的图片风格迁移。使用 React 和 ONNX Runtime Web 开发，推理后端用的 WebAssembly （ CPU ）。根据我的测试，用 WebGL 要慢不少，而且内存占用有些夸张。</p>


<p>在线访问：&nbsp;<a href="https://vicalloy.github.io/image-transformer/">https://vicalloy.github.io/image-transformer/</a></p>


<p>项目地址：&nbsp;<a href="https://github.com/vicalloy/image-transformer">https://github.com/vicalloy/image-transformer</a></p>


<figure class="wp-block-image size-large"><a href="/wp-content/uploads/2021/10/screenshot.jpg"><img decoding="async" src="/wp-content/uploads/2021/10/screenshot-1024x520.jpg" alt="" class="wp-image-12009"/></a></figure>


<h2 class="wp-block-heading">Note:</h2>


<ol class="wp-block-list"><li>所有推理工作在浏览器完成，不需要消耗服务器资源。</li><li>推理的时候需要选择图片的输出大小。不同大小的输出用的模型不同。<ul><li>越大的输出尺寸需要耗费的算力越多（时间越长），测试的时候可以先用小尺寸看效果。</li><li><code>fast neural style</code>这个模型也可以支持输出任意图片大小，不过动态参数模型太大，复杂度也高，不适合 Web 使用。</li></ul></li></ol>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
