<?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>GFPGAN &#8211; 天地一沙鸥</title>
	<atom:link href="https://haoluobo.com/tag/gfpgan/feed/" rel="self" type="application/rss+xml" />
	<link>https://haoluobo.com</link>
	<description>to be continue....</description>
	<lastBuildDate>Wed, 18 Jan 2023 01:26:57 +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>使用AI修复将画像还原成照片</title>
		<link>https://haoluobo.com/2023/01/art-face-to-photo/</link>
		
		<dc:creator><![CDATA[vicalloy]]></dc:creator>
		<pubDate>Mon, 16 Jan 2023 13:23:00 +0000</pubDate>
				<category><![CDATA[vicalloy的庄家]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[GFPGAN]]></category>
		<guid isPermaLink="false">https://haoluobo.com/?p=12366</guid>

					<description><![CDATA[GFPGAN 是一个使用 AI 进行人脸修复的工具，即使对非常模糊的人脸也可起到不错的修复效果。Hugging [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a rel="noreferrer noopener" href="https://github.com/TencentARC/GFPGAN" data-type="URL" data-id="https://github.com/TencentARC/GFPGAN" target="_blank">GFPGAN</a> 是一个使用 AI 进行人脸修复的工具，即使对非常模糊的人脸也可起到不错的修复效果。<a rel="noreferrer noopener" href="https://huggingface.co/" data-type="URL" data-id="https://huggingface.co/" target="_blank">Hugging Face</a> 提供了AI应用Demo的快速部署。我 Fork 了一份 GFPGAN 的 Demo 并做了少量的调整以加强对图片的支持。</p>



<p><strong>在线体验地址</strong> <a href="https://huggingface.co/spaces/vicalloy/GFPGAN">https://huggingface.co/spaces/vicalloy/GFPGAN</a></p>



<p>AI技术在图片生成领域有了不错的进展，现在已经可以通过文字生成质量不错的图片了。之前就一直想尝试用AI人脸修复将画中的人脸修复成照片，只是迫于拖延症一直未能真正动手。这些天试了一下，发现这个想法切实可行，就是修复出的效果算不上出色。</p>



<h3 class="wp-block-heading">Tips</h3>



<ol class="wp-block-list">
<li>AI 照片修复实际上是让 AI 对图片进行自行“脑补”的一个过程，所以原图细节一定不能过多（图片一定要小，或是），不然不利于 AI 软件的自行发挥。</li>



<li>樱木花道的输出效果不太好，再小丢失的细节又过多，因此加了个高斯模糊。注：理论上加高斯模糊比单纯的缩小图片效果要好，大家可以对其他图片试试。</li>



<li>应当是缺少样本，外加人脸检测时，如果胡子过长截取人脸时会丢失部分胡子。古人的长须无法完整修复。</li>



<li>过于“漫画化”的图片是无法识别到人脸的。</li>
</ol>



<h3 class="wp-block-heading">效果</h3>



<p>樱木花道</p>



<figure class="wp-block-image size-full"><img decoding="async" width="194" height="212" src="https://haoluobo.com/wp-content/uploads/2023/01/樱木花道.jpg" alt="" class="wp-image-12361"/></figure>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="776" height="848" src="https://haoluobo.com/wp-content/uploads/2023/01/樱木花道out.jpg" alt="" class="wp-image-12363" srcset="https://haoluobo.com/wp-content/uploads/2023/01/樱木花道out.jpg 776w, https://haoluobo.com/wp-content/uploads/2023/01/樱木花道out-275x300.jpg 275w, https://haoluobo.com/wp-content/uploads/2023/01/樱木花道out-768x839.jpg 768w, https://haoluobo.com/wp-content/uploads/2023/01/樱木花道out-624x682.jpg 624w" sizes="(max-width: 776px) 100vw, 776px" /></figure>



<p>唐太宗李世民</p>



<figure class="wp-block-image size-full"><img decoding="async" width="80" height="107" src="https://haoluobo.com/wp-content/uploads/2023/01/李世民.jpg" alt="" class="wp-image-12359"/></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="320" height="428" src="https://haoluobo.com/wp-content/uploads/2023/01/李世民out.jpg" alt="" class="wp-image-12360" srcset="https://haoluobo.com/wp-content/uploads/2023/01/李世民out.jpg 320w, https://haoluobo.com/wp-content/uploads/2023/01/李世民out-224x300.jpg 224w" sizes="auto, (max-width: 320px) 100vw, 320px" /></figure>



<p>乾隆</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="192" height="180" src="https://haoluobo.com/wp-content/uploads/2023/01/乾隆.jpg" alt="" class="wp-image-12357"/></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="768" height="720" src="https://haoluobo.com/wp-content/uploads/2023/01/乾隆out.jpg" alt="" class="wp-image-12358" srcset="https://haoluobo.com/wp-content/uploads/2023/01/乾隆out.jpg 768w, https://haoluobo.com/wp-content/uploads/2023/01/乾隆out-300x281.jpg 300w, https://haoluobo.com/wp-content/uploads/2023/01/乾隆out-624x585.jpg 624w" sizes="auto, (max-width: 768px) 100vw, 768px" /></figure>



<p>韩熙载</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="110" height="266" src="https://haoluobo.com/wp-content/uploads/2023/01/韩熙载.jpg" alt="" class="wp-image-12364"/></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="423" height="1024" src="https://haoluobo.com/wp-content/uploads/2023/01/韩熙载out-423x1024.jpg" alt="" class="wp-image-12365" srcset="https://haoluobo.com/wp-content/uploads/2023/01/韩熙载out-423x1024.jpg 423w, https://haoluobo.com/wp-content/uploads/2023/01/韩熙载out-124x300.jpg 124w, https://haoluobo.com/wp-content/uploads/2023/01/韩熙载out.jpg 440w" sizes="auto, (max-width: 423px) 100vw, 423px" /></figure>



<p>宋太祖赵匡胤</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="640" height="689" src="https://haoluobo.com/wp-content/uploads/2023/01/宋太祖.jpg" alt="" class="wp-image-12367" srcset="https://haoluobo.com/wp-content/uploads/2023/01/宋太祖.jpg 640w, https://haoluobo.com/wp-content/uploads/2023/01/宋太祖-279x300.jpg 279w, https://haoluobo.com/wp-content/uploads/2023/01/宋太祖-624x672.jpg 624w" sizes="auto, (max-width: 640px) 100vw, 640px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="951" height="1024" src="https://haoluobo.com/wp-content/uploads/2023/01/宋太祖out-951x1024.jpg" alt="" class="wp-image-12368" srcset="https://haoluobo.com/wp-content/uploads/2023/01/宋太祖out-951x1024.jpg 951w, https://haoluobo.com/wp-content/uploads/2023/01/宋太祖out-279x300.jpg 279w, https://haoluobo.com/wp-content/uploads/2023/01/宋太祖out-768x827.jpg 768w, https://haoluobo.com/wp-content/uploads/2023/01/宋太祖out-624x672.jpg 624w, https://haoluobo.com/wp-content/uploads/2023/01/宋太祖out.jpg 1280w" sizes="auto, (max-width: 951px) 100vw, 951px" /></figure>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
