<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[GliaCloud - Medium]]></title>
        <description><![CDATA[GliaCloud helps video communication easily - Medium]]></description>
        <link>https://medium.com/gliacloud?source=rss----796818295b15---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>GliaCloud - Medium</title>
            <link>https://medium.com/gliacloud?source=rss----796818295b15---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:58:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/gliacloud" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Still Image to 3D video: AI Driven 3D Ken Burns Effect]]></title>
            <link>https://medium.com/gliacloud/still-image-to-3d-video-ai-driven-3d-ken-burns-effect-d562b8ef85da?source=rss----796818295b15---4</link>
            <guid isPermaLink="false">https://medium.com/p/d562b8ef85da</guid>
            <category><![CDATA[3d-ken-burns-effect]]></category>
            <dc:creator><![CDATA[Kevinchen]]></dc:creator>
            <pubDate>Tue, 04 Jan 2022 04:01:54 GMT</pubDate>
            <atom:updated>2022-01-04T04:01:54.828Z</atom:updated>
            <content:encoded><![CDATA[<h4>3D Ken Burns Effect from a Single Image</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*Nz5H8u6X33EuD-EO1pPsvg.gif" /></figure><blockquote>“It’s going to be interesting to see how society deals with artificial intelligence, but it will definitely be cool.”</blockquote><blockquote>— Colin Angle</blockquote><p>Artificial Intelligence has been utilized to create lots of astonishing works in order to cope with some problems for human. Today, let’s take a look at one of the coolest work of AI: <strong>3D Ken Burns Effect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*XyTshTfzIgf1TVMtkyxZgw.jpeg" /></figure><h3>3D Ken Burns Effect</h3><p>The <a href="https://en.wikipedia.org/wiki/Ken_Burns_effect"><strong>Ken Burns effect</strong></a> is a film and video editing technique used to animate still images by panning and zooming. This technique is commonly used by many filmmakers to maintain viewer interest. The name derived from American documentarian Ken Burns which widely use this technique in his film work.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDrZ2miNkC5M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDrZ2miNkC5M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDrZ2miNkC5M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/93341f80bb44a960866ce6be04f06bec/href">https://medium.com/media/93341f80bb44a960866ce6be04f06bec/href</a></iframe><p>Later this effect was enhanced by adding <strong>parallax effect</strong>, which results in the <strong>3D Ken Burns Effect</strong>, yields more compelling experiences. This technique allows animating the still image with a virtual camera scan and zoom while the camera is moving in <strong>3rd dimension</strong>. The objects’ position and size in the images will change depending on the panning or respectively the zoom.</p><p>Although 3D Ken Burns Effect creates immersive experience for viewers, manually producing this effect is <strong>time-consuming and required several precise image editing skill</strong>.</p><p>To lower the bar of creating such effect, AI gives a solution!</p><p>A research team: SIMON NIKLAUS(Portland State University), LONG MAI(Adobe Research), JIMEI YANG(Adobe Research), FENG LIU(Portland State University) found a deep-learning solution:</p><blockquote>“3D Ken Burns Effect from a Single Image”</blockquote><blockquote>paper: <a href="https://arxiv.org/pdf/1909.05483.pdf">https://arxiv.org/pdf/1909.05483.pdf</a></blockquote><blockquote>github: <a href="https://github.com/sniklaus/3d-ken-burns">https://github.com/sniklaus/3d-ken-burns</a></blockquote><p>let’s take a look of their work👀</p><h3><strong>How do they achieve?</strong></h3><p>They separate 3D Ken Burns Effect into two tasks: Depth Estimation and view synthesis.</p><p><strong>Depth Estimation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vK7aGVBkZPUXuOwS9HMKPQ.png" /><figcaption>Source: Paper “<a href="https://arxiv.org/abs/1909.05483">3D Ken Burns Effect from a Single Image</a>”</figcaption></figure><p>The depth estimation pipeline is responsible for estimating, adjusting, and refining the depth map.</p><p><strong>View Synthesis</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*padjxj-VNVZz_OIm5popBQ.png" /><figcaption>Source: Paper “<a href="https://arxiv.org/abs/1909.05483">3D Ken Burns Effect from a Single Image</a>”</figcaption></figure><p>For view synthesis, they extend the point cloud until the occluded areas are filled with color and depth information.</p><p>Combining the two tasks, the 3D Ken Burns Effect can be generate by moving a camera through the extended point cloud and capturing a sequences of images in different angles.</p><p>In the nutshell, we can <strong>easily produce a 3D video clip with a single image!</strong></p><p>For more detail, check out the <a href="https://arxiv.org/abs/1909.05483">paper</a> or the video below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWrajxHHfRBA%3Fstart%3D2%26feature%3Doembed%26start%3D2&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWrajxHHfRBA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWrajxHHfRBA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cf774f27b2e9f472998f5234651bc9a/href">https://medium.com/media/0cf774f27b2e9f472998f5234651bc9a/href</a></iframe><h3>How fast is it?</h3><p>We tested the inference time of 3D KBE by repeating the experiment 4 times.</p><p>The experiment dataset contains 52 different shape of images downloaded <a href="https://www.pexels.com/">Pexels</a> and <a href="https://unsplash.com/">Unsplash</a>.</p><p>Inputting an image, we can generate the 3D KBE around <strong>15 seconds with GPU</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c64abe9506a9cac8e9f1ea3f4449ea75/href">https://medium.com/media/c64abe9506a9cac8e9f1ea3f4449ea75/href</a></iframe><p><em>Note: 3D KBE </em><strong><em>can’t not work on pure CPU environment</em></strong><em> because the author only provide GPU-based inference code. If you want to try on your CPU -only machine, check this </em><a href="https://github.com/sniklaus/3d-ken-burns/issues/13"><em>issue</em></a><em>.</em></p><p>The testing hardware:</p><ul><li>OS：Ubuntu 20.04</li><li>GPU：NVIDIA Tesla V100 SXM2 single core</li><li>GPU Memory：30 GB</li><li>Memory：60 GB</li><li>CUDA Driver：460.119.04</li><li>CUDA：11.4</li><li>cuDNN：8.x.x</li><li>Python version：3.8.10</li></ul><h3>How’s the Quality?</h3><p>Pros:</p><ol><li>Best working scenario: the scenery images which has <strong>a clear boundary of background and foreground</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TU32kpQ0DD328Pf_4ZVvPg.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fswo60Gfn_zM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dswo60Gfn_zM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fswo60Gfn_zM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf254f595124ca9a17d4aa7687234313/href">https://medium.com/media/bf254f595124ca9a17d4aa7687234313/href</a></iframe><p>2. Work well when there is <strong>no human</strong> in the picture.</p><p>3. The animation images also work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*jj2UZdhw__tzN9qSeuiBXw.jpeg" /><figcaption>Source:<a href="https://www.manpingou.com/stage/Weddingbg/474.html">https://www.manpingou.com/stage/Weddingbg/474.html</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtUaFfHgjzrY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtUaFfHgjzrY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtUaFfHgjzrY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/25eca3e9aee1c83a9153fed28278853b/href">https://medium.com/media/25eca3e9aee1c83a9153fed28278853b/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lGl-oCnL3jikkPkllnPOw.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-O2yhkKE_I8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-O2yhkKE_I8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-O2yhkKE_I8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/90da4caa770dd0063501cd0471a11b8c/href">https://medium.com/media/90da4caa770dd0063501cd0471a11b8c/href</a></iframe><p>Cons:</p><ol><li>The depth estimation will be extremely difficult when dealing with <strong>reflective surface(ex. glass) or very thin structure(ex. tree, pillar).</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQcvHIYuU22m626yBFFS9A.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuoxEmDpaRTE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuoxEmDpaRTE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuoxEmDpaRTE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce89c9929700e35e27d7d800b26390e8/href">https://medium.com/media/ce89c9929700e35e27d7d800b26390e8/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BlKytMCAItJ5Z0IKWa7l4w.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1Fieftm3kz0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1Fieftm3kz0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1Fieftm3kz0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/71a706cd9427da4ee65e70393a4f76c7/href">https://medium.com/media/71a706cd9427da4ee65e70393a4f76c7/href</a></iframe><p>2. The second step of depth estimation pipeline, Depth Adjustment, utilize <a href="https://arxiv.org/abs/1703.06870">Mask R-CNN</a> to segment objects. <strong>If they provide an inaccurate segmentation, it’s virtually impossible to perform an precise depth adjustment.</strong> In below image, the nose of deer is cut off due to the inaccurate segmentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*-RLZkehyCJGm-s-808U0pQ.png" /><figcaption>Source: Paper “<a href="https://arxiv.org/abs/1909.05483">3D Ken Burns Effect from a Single Image</a>”</figcaption></figure><p>3. People in the image will often suffer from distortion and generate artifacts in the 3D video.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkQfkVnOeVeP7X-I5_9HEA.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpfLkb8fEcas%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpfLkb8fEcas&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpfLkb8fEcas%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e448e6d3f8cb8a2d52a883ffde5e70/href">https://medium.com/media/84e448e6d3f8cb8a2d52a883ffde5e70/href</a></iframe><h3><strong>Try it out</strong></h3><p>The author has provide inference code and an GUI for everybody who want to generate 3D Ken Burns Effect on your image for non-commercial use. Check out his repository:</p><p><a href="https://github.com/sniklaus/3d-ken-burns">GitHub - sniklaus/3d-ken-burns: an implementation of 3D Ken Burns Effect from a Single Image using PyTorch</a></p><p>If you do not have suitable environment to run the code, then you could try on Colab. Below are some Colab notebook that you can give it a shot.</p><ul><li><a href="https://github.com/wpmed92/3d-ken-burns-colab">GitHub - wpmed92/3d-ken-burns-colab: A Google Colab notebook for 3d-ken-burns</a></li><li><a href="https://towardsdatascience.com/very-spatial-507aa847179d">Very spatial!</a></li><li><a href="https://colab.research.google.com/github/agmm/colab-3d-ken-burns/blob/master/automatic-3d-ken-burns.ipynb">Google Colaboratory</a></li></ul><h4>Deployment</h4><p>We implement an API with <a href="https://fastapi.tiangolo.com/">FastAPI</a> and containerized the solution for deployment. Check out our repository:</p><p><a href="https://github.com/livingbio/3d-ken-burns">GitHub - livingbio/3d-ken-burns</a></p><h3>Other demo video</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3kzAroAkuExkxDbqZ3xqNg.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fk52opTzWSKg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dk52opTzWSKg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fk52opTzWSKg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/846d87abff26d1596c0fa73a453512c1/href">https://medium.com/media/846d87abff26d1596c0fa73a453512c1/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7rbE9HImqfyTUfayJkQLLw.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnfETLkusVd4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnfETLkusVd4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnfETLkusVd4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/16712d1e033f3c246dc9609e2b310a7e/href">https://medium.com/media/16712d1e033f3c246dc9609e2b310a7e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfxqnOP5W7NKlTZ9w5SHng.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F76b9HTgcNT8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D76b9HTgcNT8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F76b9HTgcNT8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/04bba12876f50987e5ab0a7bab846e09/href">https://medium.com/media/04bba12876f50987e5ab0a7bab846e09/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y5EFOL2crw4vKP3vyHGMVA.jpeg" /><figcaption>Source: Pexel</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmH-zGj47awE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmH-zGj47awE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmH-zGj47awE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8dadb3d37cc676e6db6bfb20684705d2/href">https://medium.com/media/8dadb3d37cc676e6db6bfb20684705d2/href</a></iframe><h3>Reference</h3><p>S. Niklaus, L. Mai, J. Yang, and F. Liu. 2019. 3D Ken Burns Effect from a Single Image. <a href="https://arxiv.org/pdf/1909.05483.pdf"><em>arXiv/1909.05483v1</em></a> (2019)</p><p>Kaiming He, Georgia Gkioxari, Piotr Dollár and Ross Girshick 2017. Mask R-CNN. <a href="https://arxiv.org/abs/1703.06870">arXiv:1703.06870</a>(2017)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d562b8ef85da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gliacloud/still-image-to-3d-video-ai-driven-3d-ken-burns-effect-d562b8ef85da">Still Image to 3D video: AI Driven 3D Ken Burns Effect</a> was originally published in <a href="https://medium.com/gliacloud">GliaCloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Removing Any Object From Your Photo with LaMa]]></title>
            <link>https://medium.com/gliacloud/removing-any-object-from-your-photo-with-lama-7e966765fadc?source=rss----796818295b15---4</link>
            <guid isPermaLink="false">https://medium.com/p/7e966765fadc</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[image-inpainting]]></category>
            <category><![CDATA[fourier-transform]]></category>
            <category><![CDATA[alma]]></category>
            <category><![CDATA[generative-adversarial]]></category>
            <dc:creator><![CDATA[Andrew]]></dc:creator>
            <pubDate>Mon, 13 Dec 2021 16:46:14 GMT</pubDate>
            <atom:updated>2021-12-13T23:07:48.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xO8hHrO1LEhO-1NQqOB88Q.png" /></figure><p>Recently this year, Samsung Research published a <a href="https://arxiv.org/pdf/2109.07161.pdf">paper</a> on high-resolution image inpainting:</p><blockquote><strong>LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*4G7szw76LpF3O7VKyzFWCg.gif" /></figure><blockquote><strong>What is Inpainting?</strong></blockquote><blockquote>“It’s the process of reconstructing missing parts of an image <strong>so that observers are unable to tell that these regions have undergone restoration</strong>, often used to remove unwanted objects from an image or to restore damaged portions of old photos.”</blockquote><blockquote>Source: <a href="https://medium.com/@mikhail_26901/image-inpainting-humans-vs-ai-48fc4bca7ecc">Image Inpainting: Humans vs. AI</a> by Mikhail Erofeev</blockquote><h3>What’s Special?</h3><p>LaMa isn’t the first-ever paper on image inpainting. Some previous works include CGPR (Hukkelas et al., 2020), Mask-Aware Dynamic Filtering (MADF) (Zhu et al., 2021), AOT-GAN (Zeng et al., 2021), and many more.</p><p>So, what’s special about LaMa?</p><h4>Easy and Fast</h4><blockquote><strong>LaMa is fast! Saves your time searching for “photoshop inpainting tutorial” on Google.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*OWLzfJvsLkL67d_s.png" /></figure><p>We tested the inference time of LaMa with HD images, with 7–10% of inpainted areas on average (max 20%), repeated each experiment 5 times, and reported the average.</p><p>Given an image, we were able to remove the painted object in <strong>2 seconds with a GPU</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f326993dca0c7b357aadd9e86fe7f7d/href">https://medium.com/media/5f326993dca0c7b357aadd9e86fe7f7d/href</a></iframe><blockquote><strong>What if I have only CPUs?</strong></blockquote><blockquote>Don’t worry. LaMa <strong>also works on pure CPU environments</strong>. It took around <strong>25 seconds to inpaint an image</strong> with our hardware.</blockquote><p>Here are the hardware specs for testing:</p><ul><li>GPU： NVIDIA Tesla V100 SXM2 single core</li><li>GPU Memory: 30 GB</li><li>Memory：60 GB</li><li>CPU：Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz</li><li>Num. of CPU：36</li></ul><h4>Works on High-Quality Photos</h4><p>In the paper, the authors tested the model on photos of 640 * 512 and 1920 * 1536, and both showed impressive inpainting results.</p><p>We tested the model even further with images of 1920 *1280 (HD), 2048 *1080 (2K), and 3840 * 2160 (4K). The results are for HD and 2K are good as the authors claimed.</p><blockquote>Note that LaMa is <strong>trained only on images of 256 * 256</strong>. This indicates the high generalizability of the model on images of different resolutions.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*An63hxHV0ly7jbKQCXLkEw.png" /><figcaption>LaMa’s Inpainting Result on 2K Images</figcaption></figure><p>However, for 4K images, we have yet successfully generated outputs from the model as the <a href="https://colab.research.google.com/github/saic-mdal/lama/blob/master//colab/LaMa_inpainting.ipynb">Google Colab</a> used for testing would crash.</p><h4>Open Source</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F4047574&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fchris-pratt-shocked-surprised-the-office-gif-4047574&amp;image=https%3A%2F%2Fc.tenor.com%2F-_LetTkx0ogAAAAC%2Fchris-pratt-shocked.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f1ccf218b187167ff088f3fa5bd0abc/href">https://medium.com/media/5f1ccf218b187167ff088f3fa5bd0abc/href</a></iframe><p>Another plus about LaMa is that its code is <strong>entirely open-sourced</strong>! It’s released under <a href="https://github.com/saic-mdal/lama/blob/main/LICENSE">Apache License 2.0</a>, meaning you’re <strong>free to modify, distribute, use it commercially</strong> as long as you abide by the terms.</p><p><a href="https://github.com/saic-mdal/lama">GitHub - saic-mdal/lama: 🦙 LaMa Image Inpainting, Resolution-robust Large Mask Inpainting with Fourier Convolutions, WACV 2022</a></p><h4>Third-party Application</h4><p>Provided the Apache License, many have also developed their own applications or demos of LaMa:</p><ul><li><a href="https://cleanup.pictures/">Cleanup Picture</a> by <a href="https://medium.com/u/a4cf778f3668">Cyril Diagne</a></li><li><a href="https://github.com/Sanster/lama-cleaner">lama-cleaner</a> by <a href="https://github.com/Sanster">Sanster on GitHub</a></li><li>Integration to <a href="https://huggingface.co/spaces/akhaliq/lama">Huggingface Spaces with Gradio</a> by <a href="https://github.com/AK391">AK391 on GitHub</a></li><li>Telegram bot <a href="https://t.me/MagicEraserBot">MagicEraserBot</a> (<a href="https://github.com/Moldoteck/MagicEraser">code</a>) by <a href="https://github.com/Moldoteck">Moldoteck on GitHub</a></li></ul><p>You too can easily build an application with LaMa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/0*DXPqP1hXWq-jXqG-.jpg" /></figure><h3>How’s the Quality?</h3><h4>Pros</h4><ol><li>Best working scenario: <strong>small-area inpainting</strong> where the colors of the surroundings are relatively consistently with no texts</li><li>Performs well irrespective of the hue, saturation, and brightness of the surroundings.</li><li>Works better when the inpainted object is <strong>surrounded by a single pattern</strong>: single color, linear color gradient, parallel lines, grids, etc.</li><li>Even if the backgrounds are of different colors on different sides of the inpainted object, LaMa is able to smoothly <strong>bridge the color difference with gradients</strong>.</li></ol><h4>Cons</h4><ol><li>When painting an object for removal, you can’t just paint exactly up until the edges of the object. <strong>Parts of the background need to be included in order to yield good inpainting results</strong>.</li><li><strong>Refrain from having an inpainted area with holes of uncovered sub-areas</strong>. The colors and patterns of these sub-areas could interfere with those of the background as the model fills the inpainted area.</li></ol><h4>Case Studies</h4><p>Here are a few case studies on the quality of LaMa’s outputs. For each case, from the left to right, we have the (1) original image, (1) the image with the target object painted, and (3) the resulting image with the target object removed.</p><p><strong>Case 1–1: Removing a couple at dusk</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ScyhYOSn_SRV63d6KQGPQ.png" /><figcaption>Case 1–1</figcaption></figure><ol><li>We didn’t entirely cover the shadows of the couple with our paint, so LaMa not only kept but extended them as part of the inpainting process.</li><li>Similarly, the pedestrian in the grey down jacket wasn’t entirely covered, so it was also extended to fill the inpainted area.</li><li>The lights near the ground were slightly distorted but it’s indiscernible if we view the photo at its original scale.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Xtt7TnpLczmIAjI0qZ9EEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*d9rnZhb6EdUR03UGaqvSpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*rvoKjYlCLPPWLW4usv8cEA.png" /><figcaption>Case 1–1 (zoomed in)</figcaption></figure><p><strong>Case 1–2: Removing a couple at dusk (w/ shadows covered)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60RwpI5Kqtgp9HjftrbbUQ.png" /><figcaption>Case 1–2</figcaption></figure><ol><li>We painted over the shadows entirely, so LaMa removes them along with the couple, leaving little to no traces.</li><li>In order to cover the shadows, a larger proportion of the bench was also included, causing slight distortions to the surface. On the other hand, the lights close to the ground were preserved much better than in the previous test case.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*gdXj02g7nvrGHAT1Y5OrYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Y5exfJwEsSN-YCxkoCHvWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*bXzjHLr8MFBvnXB1IqOV2g.png" /><figcaption>Case 1–2 (zoomed in)</figcaption></figure><p><strong>Case 2–1: Removing a man in a group photo</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aRI3sRsoNjDk2afeSC2LxA.png" /><figcaption>Case 2–1</figcaption></figure><ol><li>The background was too complex (with texts of high contrast color) for LaMa to perform inpainting.</li><li>A large proportion of the inpainted area was filled with grey, the color of the suit worn by the man removed, likely because we only painted up to the edges of the suit instead of stretching it out a little more. While the high contrast between the grey of the removed object and the black of the surroundings could also be a factor, we have seen LaMa perform quite well in such a scenario through Case 1–1 and Case 1–2.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*s_HN2lF2IkaUaHyjvginqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*iehkJUBZxPLojLZ4XhHt_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*TzRJTixFtDOxhrUJ2JO7Ig.png" /><figcaption>Case 2–1 (zoomed in)</figcaption></figure><p><strong>Case 2–2: Removing a man in a group photo (w/ more background included)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBaiwONvtiLuVUwcyK2nng.png" /><figcaption>Case 2–2 (1st try)</figcaption></figure><ol><li>For the 1st try, we attempted to include more background around the man in the grey suit with our paint. However, the holes retained some of the text on the backdrop.</li><li>The 2nd try was more successful with minimal incomplete texts retained and the colors were filled rather coherently.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-AQ8OQ2pfpESc7DigO9kQ.png" /><figcaption>Case 2–2 (2nd try)</figcaption></figure><p><strong>Case 3: Removing a man to keep just the scene in the background</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XA-SC9X38VBhXvNGrU_C6g.png" /><figcaption>Case 3</figcaption></figure><ol><li>The tower crane in the background was recovered fairly well. LaMa was also able to capture the window patterns of the buildings, despite some shadows.</li><li>The repair is indiscernible if we view the photo at its original scale.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*tUCNUBjZ5Jb3hEpfpWg9-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*G8FfbicbdSZg3bQ18viQHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*6W8sKHRSyl9ZDBPHsMq2fw.png" /><figcaption>Case 3 (zoomed in)</figcaption></figure><h3>Find Out More</h3><p>If you’d like to learn more about LaMa, make sure to check out these resources:</p><ul><li><a href="https://saic-mdal.github.io/lama-project/">LaMa Project Page</a></li><li><a href="https://arxiv.org/abs/2109.07161">LaMa arXiv</a></li><li><a href="https://ashukha.com/projects/lama_21/lama_supmat_2021.pdf">LaMa Supplementary Material</a></li></ul><h3>Reference</h3><ol><li>Hakon Hukkelas, Frank Lindseth, and Rudolf Mester. 2020. Image Inpainting with Learnable Feature Imputation. CoRR abs/2011.01077, (2020). Retrieved from <a href="https://arxiv.org/abs/2011.01077">https://arxiv.org/abs/2011.01077</a></li><li>Manyu Zhu, Dongliang He, Xin Li, Chao Li, Fu Li, Xiao Liu, Errui Ding, and Zhaoxiang Zhang. 2021. Image Inpainting by End-to-End Cascaded Refinement with Mask Awareness. CoRR abs/2104.13743, (2021). Retrieved from <a href="https://arxiv.org/abs/2104.13743">https://arxiv.org/abs/2104.13743</a></li><li>Roman Suvorov, Elizaveta Logacheva, Anton Mashikhin, Anastasia Remizova, Arsenii Ashukha, Aleksei Silvestrov, Naejin Kong, Harshith Goka, Kiwoong Park, and Victor Lempitsky. 2021. Resolution-robust Large Mask Inpainting with Fourier Convolutions. arXiv preprint arXiv:2109.07161 (2021).</li><li>Yanhong Zeng, Jianlong Fu, Hongyang Chao, and Baining Guo. 2021. Aggregated Contextual Transformations for High-Resolution Image Inpainting. CoRR abs/2104.01431, (2021). Retrieved from <a href="https://arxiv.org/abs/2104.01431">https://arxiv.org/abs/2104.01431</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e966765fadc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gliacloud/removing-any-object-from-your-photo-with-lama-7e966765fadc">Removing Any Object From Your Photo with LaMa</a> was originally published in <a href="https://medium.com/gliacloud">GliaCloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make the Mona Lisa talk: Thoughts on Few-shot Video-to-Video Synthesis]]></title>
            <link>https://medium.com/gliacloud/make-the-mona-lisa-talk-thoughts-on-few-shot-video-to-video-synthesis-46c88a903daa?source=rss----796818295b15---4</link>
            <guid isPermaLink="false">https://medium.com/p/46c88a903daa</guid>
            <category><![CDATA[few-shot-vid2vid]]></category>
            <category><![CDATA[video-generation]]></category>
            <category><![CDATA[generative-adversarial]]></category>
            <category><![CDATA[video-synthesis]]></category>
            <category><![CDATA[few-shot-learning]]></category>
            <dc:creator><![CDATA[Andrew]]></dc:creator>
            <pubDate>Thu, 09 Dec 2021 17:36:26 GMT</pubDate>
            <atom:updated>2021-12-09T17:40:54.528Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAPoB1u3kTOU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAPoB1u3kTOU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAPoB1u3kTOU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/95c1bb355eae7886425a4161caef0ae4/href">https://medium.com/media/95c1bb355eae7886425a4161caef0ae4/href</a></iframe><blockquote>Few-shot vid2vid makes it possible to generate videos from a single frame image.</blockquote><h3>Background</h3><p>With the advancement of Generative Adversarial Networks (GANs) (<em>Goodfellow et al., 2014</em>), video generation has become a popular topic in computer vision (CV) succeeding the blooming success of high-fidelity image generation. In general, video generation can differ in the type of conditional signal provided. On one side of the spectrum, we have unconditional synthesis where the task is to generate any video content given the training distribution. On the other side lies strongly-conditioned models, such as generation conditioned on another video for content transfer (<em>Bansal et al., 2018</em>, <em>Wang et al., 2019</em>), per-frame segmentation masks (Wang et al., 2018), and pose information (<em>Walker et al., 2017</em>, <em>Villegas et al., 2017</em>, <em>Yang et al., 2018</em>). Seeking to generate high-quality video clips of a defined theme or topic, in this article, we explored and evaluated the performance of <a href="https://nvlabs.github.io/few-shot-vid2vid/">Few-shot Video-to-Video Synthesis</a> (Few-shot vid2vid) (<em>Wang et al., 2019</em>).</p><h3>About Few-shot Vid2vid</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cv09ncTyZtIUEslAhKvGPg.gif" /><figcaption>Few-shot Vid2vid Applications</figcaption></figure><h4>Related Work</h4><p>The few-shot vid2vid model was built upon three major previous works: pix2pix (<em>Isola et al., 2017</em>), pix2pixHD (<em>Wang et al., 2017)</em>, and vid2vid (<em>Wang et al., 2018</em>). With pix2pix, a unified framework for image generation was proposed. Following that, pix2pixHD improves on the framework to allow for high-resolution image generation. Vid2vid extended these works to generate videos at high resolution given a reference video.</p><p>However, vid2vid suffers two major limitations. Firstly, it is data-hungry, requiring numerous images of a target human subject or a scene for training. Secondly, a learned vid2vid model has limited generalization capability. A pose-to-human vid2vid model can not synthesize poses for all individuals except those that occurred in the training set. Few-shot vid2vid is thus proposed by researchers at NVIDIA to handle unseen subjects or scenes by leveraging a few example images of the target at test time.</p><blockquote>Essentially, given a reference image and a driving video, few-shot vid2vid is able to <strong>transfer the movements (e.g. speaking, physical movements, moving street scene) fromthe driving video to the reference image</strong> so as to produce a video of the same movements based on the reference image.</blockquote><p>The official repository has now migrated to NVIDIA’s Imaginaire project</p><p><a href="https://github.com/NVlabs/imaginaire">GitHub - NVlabs/imaginaire: NVIDIA&#39;s Deep Imagination Team&#39;s PyTorch Library</a></p><h4>Dataset</h4><p>The authors of the few-shot vid2vid model evaluated the performance on three different tasks/datasets: pose-to-human (human-dancing videos), face transfer (talking-head videos), and street-scene style transfer (street-scene videos):</p><ul><li>Human-Dancing Videos:</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRt8bfTUE49g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRt8bfTUE49g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRt8bfTUE49g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ffdd4051845714463364f0b0ddc8b33/href">https://medium.com/media/0ffdd4051845714463364f0b0ddc8b33/href</a></iframe><ul><li>Talking-Head Videos</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXGbngsmVo_0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXGbngsmVo_0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXGbngsmVo_0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7df2cb5cdd5fbee65bfbcc033027eb23/href">https://medium.com/media/7df2cb5cdd5fbee65bfbcc033027eb23/href</a></iframe><ul><li>Street-Scene Videos</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9qUkFM0eS-g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9qUkFM0eS-g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9qUkFM0eS-g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/72fc0550afa311650a556fbdd4c825ff/href">https://medium.com/media/72fc0550afa311650a556fbdd4c825ff/href</a></iframe><h3>Testing</h3><p>Unfortunately, due to privacy concerns and copyrights, the authors did not have permission to release the <a href="http://niessnerlab.org/projects/roessler2018faceforensics.html">FaceForensics</a> dataset. For human-dancing videos and street-scene videos, the training data consists of a large number of dancing tutorials and dashcam footages, respectively, on YouTube. These videos turned out to be computationally expensive to preprocess for training.</p><p>As a result, we primarily focused on testing the inference of the few-shot vid2vid model on its face transferability.</p><h4>Demo</h4><p><em>For each video clip, from the left to right, we have: (1) the reference image to which movements will be transferred, (2) Dlib’s 68 facial landmarks of the driving video, (3) the driving video itself, and (4) the results of video-to-video synthesis</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPTlqFHp0KjI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPTlqFHp0KjI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPTlqFHp0KjI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f26804d49a1b4ef2c40dc06dcd96a6f4/href">https://medium.com/media/f26804d49a1b4ef2c40dc06dcd96a6f4/href</a></iframe><p>On the official test data, we see a relatively coherent face swap with minimal distortion on both the face and the background.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8tYjRT6Jjis%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8tYjRT6Jjis&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8tYjRT6Jjis%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b84f5dd7e0fe32ce82bdca0a9f9a94c3/href">https://medium.com/media/b84f5dd7e0fe32ce82bdca0a9f9a94c3/href</a></iframe><p>However, when tested on a headshot of myself, we see the background shift both vertically and horizontally as the speaker tilts his head. While the lips and the shape of the mouth synchronize pretty well, the model fails to preserve my eye shape, producing an unrealistic eye shape mixed with that of the lady in the driving video and mine.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FE8VnGTmVYWs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DE8VnGTmVYWs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FE8VnGTmVYWs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1db3c96ae030b53d61ead459d3cea3d6/href">https://medium.com/media/1db3c96ae030b53d61ead459d3cea3d6/href</a></iframe><p>In the example of Shang-Chi, the facial features are preserved better than the previous example. There is also much less distortion and shifts in the background, likely due to its plain color.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fo2D6JU_XIB0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Do2D6JU_XIB0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fo2D6JU_XIB0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/69e9d94fd697a59baea52ef93a340e9d/href">https://medium.com/media/69e9d94fd697a59baea52ef93a340e9d/href</a></iframe><p>For the last example, we see an unsuccessful synthesis for the Statue of David that cannot be easily undone or fixed through post-processing. Based on the facial landmarks, we see that the algorithm was able to accurately capture the edges and features of the statue’s face. Yet there exists some type of distorted overlapping in the result. This is most likely due to the fact that the model was trained on a real-human frontal-view facial dataset. The statue not only has a significantly different skin tone but also could have different ratios and relative positions for the facial features.</p><h4>Quality</h4><ul><li>The model performs the best on frontal-view faces for two potential reasons: (1) the model was trained mostly on frontal-view faces and (2) it relies on Dlib’s 68-point facial landmark detector to accurately capture the reference and target faces and their features; for non-frontal faces, the landmarks could overlap or be obscured, causing the model to mislocate the facial features and thus result in distortion of faces.</li><li>Similarly, if the faces are obscured partially by items like glasses, masks, or hair, the quality of the output could be affected.</li><li>We also see a disparity between the performance on faces of different races and skin tones, mostly likely due to the lack of generalization in the training data.</li><li>The transfer of faces could distort the surrounding environment; this is particularly discernible when the background consists of complex visual patterns or high contrast colors with the target face.</li></ul><h4>Suitable Scenarios</h4><ul><li>Conditions for Best Results: frontal-view faces, sufficient brightness on the foreground (faces), avoid background with complex color patterns, clear borders separating the foreground from the background</li><li>Most suitable scenarios: news reporting, online tutoring, speeches, and interviews where no physical movements are required</li></ul><h4>Limitations</h4><ul><li>Maximum output resolution: 512 by 512</li><li>Maximum video length: unlimited</li><li>Output video frame rate: default 15 fps<br>(the output also includes all the composing frames, which can be used to transform into videos of arbitrary frame rate)</li></ul><h4>Testing Hardware</h4><ul><li>OS: Ubuntu 20.04</li><li>GPU: NVIDIA Tesla V100 SXM2 single core</li><li>GPU Memory: 30 GB</li><li>Memory: 60 GB</li><li>CUDA Driver: 460.119.04</li><li>CUDA: 11.4</li><li>cuDNN: 8.x.x</li><li>Python version: 3.8.10</li></ul><h4>Resource Usage</h4><ul><li>Model Size [GPU memory]: 2.5 GB (2502 MB)</li><li>GPU Memory Usage during Training: 23 GB (23010 MB)</li><li>Inference Time: ~4.5x the output video length (w/ 15fps)</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/25ed44755d364fcd02dab96589ac952b/href">https://medium.com/media/25ed44755d364fcd02dab96589ac952b/href</a></iframe><h3>Deployment</h3><p>After testing, we simplified the <a href="https://github.com/NVlabs/imaginaire">Imaginaire</a> repository, implemented an API with <a href="https://fastapi.tiangolo.com/">FastAPI</a>, and containerized the solution for deployment. For storage, we leveraged the freemium of <a href="https://cloudinary.com/">Cloudinary</a>. You can check out our public repository here:</p><p><a href="https://github.com/livingbio/fewshot-vid2vid">GitHub - livingbio/fewshot-vid2vid</a></p><p><em>Note: Few-shot vid2vid and other models in Imaginaire are released under </em><a href="https://github.com/NVlabs/imaginaire/blob/master/LICENSE.md"><em>NVIDIA Software License</em></a><em>. For commercial use, make sure to consult </em><a href="https://www.nvidia.com/en-us/research/inquiries/"><em>NVIDIA Research Inquiries</em></a><em>.</em></p><h3>Final Thoughts</h3><p>Few-shot vid2vid is certainly a powerful video synthesis model that shows how far we’ve come in generating videos with AI. From images to videos, the field has evolved at an astonishingly rapid pace in the past 5 years with the joint efforts of academic and corporate researchers. However, we also see a gap to be bridged between academic research and industrial commercialization. This can be seen from the various minor issues in our demos with images of an arbitrary context. Should few-shot vid2vid be used for commercial purposes, more modification and fine-tuning are required to transform it into a competent product. Furthermore, there also exists the problem of affordability: both the training of the model and preprocessing of data require large computational power that exceeds the capabilities of many small-size startups and individuals. Lastly, privacy and legal concerns. As more sophisticated and robust models are being developed for video synthesis, do we have the appropriate regularizations or legislation in place to ensure these models are properly used and distributed? As software engineers, we can make more impacts than most people think and so should always be aware of the ethical implications of our actions.</p><p>Still, few-shot vid2vid is an impressive milestone in computer vision that everyone should learn more about and play around with. With this technology, we could potentially reduce the human labor for news reporting, online tutoring, speeches, and interviews. If you think of any other potential areas of application, feel free to comment below or email me. I’d also love to connect and discuss anything about the model!</p><h3>Reference</h3><ol><li>Aayush Bansal, Shugao Ma, Deva Ramanan, and Yaser Sheikh. 2018. Recycle-GAN: Unsupervised Video Retargeting. In Proceedings of the European Conference on Computer Vision (ECCV).</li><li>Ceyuan Yang, Zhe Wang, Xinge Zhu, Chen Huang, Jianping Shi, and Dahua Lin. 2018. Pose Guided Human Video Generation. CoRR abs/1807.11152, (2018). Retrieved from <a href="http://arxiv.org/abs/1807.11152">http://arxiv.org/abs/1807.11152</a></li><li>Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. 2014. Generative Adversarial Nets. In Advances in Neural Information Processing Systems, Curran Associates, Inc. Retrieved from <a href="https://proceedings.neurips.cc/paper/2014/file/5ca3e9b122f61f8f06494c97b1afccf3-Paper.pdf">https://proceedings.neurips.cc/paper/2014/file/5ca3e9b122f61f8f06494c97b1afccf3-Paper.pdf</a></li><li>Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. 2017. The Pose Knows: Video Forecasting by Generating Pose Futures. In Proceedings of the IEEE International Conference on Computer Vision (ICCV).</li><li>Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. 2017. Image-to-Image Translation with Conditional Adversarial Networks. CVPR (2017).</li><li>Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. 2017. Learning to Generate Long-term Future via Hierarchical Prediction. CoRR abs/1704.05831, (2017). Retrieved from <a href="http://arxiv.org/abs/1704.05831">http://arxiv.org/abs/1704.05831</a></li><li>Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. 2018. High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.</li><li>Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. 2018. Video-to-Video Synthesis. In Advances in Neural Information Processing Systems, Curran Associates, Inc. Retrieved from <a href="https://proceedings.neurips.cc/paper/2018/file/d86ea612dec96096c5e0fcc8dd42ab6d-Paper.pdf">https://proceedings.neurips.cc/paper/2018/file/d86ea612dec96096c5e0fcc8dd42ab6d-Paper.pdf</a></li><li>Ting-Chun Wang, Ming-Yu Liu, Andrew Tao, Guilin Liu, Bryan Catanzaro, and Jan Kautz. 2019. Few-shot Video-to-Video Synthesis. In Advances in Neural Information Processing Systems, Curran Associates, Inc. Retrieved from <a href="https://proceedings.neurips.cc/paper/2019/file/370bfb31abd222b582245b977ea5f25a-Paper.pdf">https://proceedings.neurips.cc/paper/2019/file/370bfb31abd222b582245b977ea5f25a-Paper.pdf</a></li><li>Yipin Zhou, Zhaowen Wang, Chen Fang, Trung Bui, and Tamara L. Berg. 2019. Dance Dance Generation: Motion Transfer for Internet Videos. CoRR abs/1904.00129, (2019). Retrieved from <a href="http://arxiv.org/abs/1904.00129">http://arxiv.org/abs/1904.00129</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46c88a903daa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gliacloud/make-the-mona-lisa-talk-thoughts-on-few-shot-video-to-video-synthesis-46c88a903daa">Make the Mona Lisa talk: Thoughts on Few-shot Video-to-Video Synthesis</a> was originally published in <a href="https://medium.com/gliacloud">GliaCloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Audio Driven Talking Face Models Testing and Deployment]]></title>
            <link>https://medium.com/gliacloud/audio-driven-talking-face-models-testing-and-deployment-e16ade1475f1?source=rss----796818295b15---4</link>
            <guid isPermaLink="false">https://medium.com/p/e16ade1475f1</guid>
            <category><![CDATA[facial-synthesis]]></category>
            <category><![CDATA[pc-avs]]></category>
            <category><![CDATA[makeittalk]]></category>
            <category><![CDATA[speech-synthesis]]></category>
            <category><![CDATA[talking-heads]]></category>
            <dc:creator><![CDATA[Chris Wang]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 13:42:31 GMT</pubDate>
            <atom:updated>2021-11-29T13:42:30.811Z</atom:updated>
            <content:encoded><![CDATA[<h4>Audio driven talking face : 語音驅動人臉生成</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b1xc_qAQQMmE4CGl" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Audio driven talking face 的技術主要是輸入一張照片或短影片跟一段語音，透過語音特徵跟輸入影像，辨識出嘴形、表情、頭部動作等特徵，生成一個照片中人像說話的影片。</blockquote><h4>論文 &amp; 資源比較</h4><p>Audio driven talking face 是一項發展中的技術，有許多不同的實作方式，最常見可以分為兩個階段。第一階段是透過圖片與聲音，生成 talking face landmarks，第二階段則是透過影像生成的技術，把虛擬影片生成出來。也有許多 model 透過 AutoEncoder 從聲音特徵取得其他人臉的隱性特徵（頭部擺動、情緒分析），使生成結果更加貼近真人，也降低包含頭部角度、清晰度等輸入照片的限制。</p><p>在 research 之後，發現這個問題並沒有一個最好的解法，都存在一些技術上的 trade-off，所以很難選擇該從哪裡開使做起。因此我找了三個不同面向的 model 進行測試跟實作，並比較他們的效果與差異。</p><h4>The Oxford-BBC Lip Reading in the Wild (LRW) Dataset</h4><p>LRW 是一個包含許多人臉說話的影片。許多 model 都是透過這個 dataset 訓練嘴部動作的生成。後面的 PC-AVS 跟EVP的訓練都有使用到。</p><p><a href="https://www.robots.ox.ac.uk/~vgg/data/lip_reading/lrw1.html">Lip Reading in the Wild (LRW) dataset</a></p><h3>PC-AVS</h3><p><a href="https://github.com/Hangz-nju-cuhk/Talking-Face_PC-AVS">GitHub - Hangz-nju-cuhk/Talking-Face_PC-AVS: Code for Pose-Controllable Talking Face Generation by Implicitly Modularized Audio-Visual Representation (CVPR 2021)</a></p><p>PC-AVS 提供了完整的 demo 環境。特別的是除了面部表情跟嘴型之外，可以生成頭部動作，讓影片更加自然。缺點是解析度偏低，眼球也是固定的。文中也提到透過這種方法讓輸入就算是側臉也可以生成出自然的影片。</p><h4>Demo</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLootaH2CVfU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLootaH2CVfU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLootaH2CVfU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/afb3a55ccba2ceddd87e59378b03d70d/href">https://medium.com/media/afb3a55ccba2ceddd87e59378b03d70d/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4zyvnlmozlQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4zyvnlmozlQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4zyvnlmozlQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2eaffea2141ac34a4586a98b52246a55/href">https://medium.com/media/2eaffea2141ac34a4586a98b52246a55/href</a></iframe><p>從這第一個 Demo 可以看出，生成影片的頭部動作的確跟參考影片相仿。也可以看出側臉轉正的效果。但從第二個 demo 中發現，參考頭部動作影片的臉型對原來圖片也會造成影響產生變形。實作時要選擇臉型相近的參考對象。除此之外，可以發現並沒有眨眼的效果。</p><h4>解析度的限制</h4><p>生成影片的解析度是 224*224。demo 之前的 preprocessing 中要做 face alignment，也是導致解析度降低的關鍵因素之一。可以得知這個 model 對input data 的臉部位置有較嚴格的要求。</p><h4>資源使用量</h4><p>另外硬體資源方面，以上的 demo 使用 macbook pro 的 CPU 需要二十分鐘以上的時間才能完成，使用資源依比例來看相當多。如果使用 GPU 會好一些，但是仍然十分消耗資源。</p><h3>EVP</h3><p><a href="https://github.com/jixinya/EVP">GitHub - jixinya/EVP: Code for paper &#39;Audio-Driven Emotional Video Portraits&#39;.</a></p><p>使用 MEAD dataset，一個提供一個包含情緒跟不同方位的人臉影片dataset。包含60個演員在不同程度的情緒下說話的高解析度影片。 EVP 把情緒特徵分離出來，實現情緒控制的技術人臉生成。</p><h4>Train model</h4><p>使用作者提供的測試資料測試，在audio2landmark的部分可以realtime完成，令人感到十分驚艷。透過不同的emotional feature也可以達到更改情緒的效果。但是repo提供的pre-train model與 dlib不同，使用106 landmarks，為了測試其他結果，依照作者推薦使用68 landmarks 再重 train 一次，但是效果並不理想。</p><p>訓練的方法是將原本 Landmarks 的部分調整成68維，並且跟原始方法一樣使用PCA降維至16維。Model 的架構跟原來一樣，沿用 Emotion Encoder 跟Content Encoder。從下方影片中可以發現嘴形並沒有呈現出來，訓練過程也將測量準確率的指標（FLD, MLD）畫出來，發現沒有下降的趨勢。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnkSuDoUOe0c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnkSuDoUOe0c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnkSuDoUOe0c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c1ee1c6b444eadf1d726d260d7acca3/href">https://medium.com/media/9c1ee1c6b444eadf1d726d260d7acca3/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fimgur.com%2F7m5bSCi%2Fembed%3Fpub%3Dtrue%26ref%3Dhttps%253A%252F%252Fembed.ly%26w%3D644&amp;display_name=Imgur&amp;url=https%3A%2F%2Fimgur.com%2F7m5bSCi&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=imgur" width="644" height="684" frameborder="0" scrolling="no"><a href="https://medium.com/media/48a237d08cf243c8ae31a69a683c7bdd/href">https://medium.com/media/48a237d08cf243c8ae31a69a683c7bdd/href</a></iframe><h3>MakeItTalk</h3><p><a href="https://github.com/yzhou359/MakeItTalk">GitHub - yzhou359/MakeItTalk</a></p><p>MakeItTalk 的 model 先透過 audio2landmark 的方式產生 talking landmarks video，並使用 image2image model 產生最後的影片。MakeItTalk 生成的影片在臉部清晰的情況下可以產生相對高品質的結果，包含準確的嘴型跟臉部、眨眼等動作，生成時間約為原始音檔的 2 至 3 倍左右，實用性相對其他 model 來說高上許多。除此之外，論文中也提到可以使用虛擬人物作為目標。缺點是頭部動作、人臉角度過大時會有失真的現象。</p><h4>Technical Limitation</h4><ul><li>最大輸出解析度：256*256</li><li>最大時長：無限制</li><li>輸出影片幀率：22 fps</li></ul><h4>Quality</h4><ul><li>輸入中文嘴型準確度較差，推測是跟訓練模型用的 dataset 有關</li><li>背景內容較複雜時容易看出扭曲</li><li>正臉效果較佳，推測與訓練用 dataset 跟人臉標記重疊有關</li></ul><h4>測試硬體規格</h4><ul><li>OS：Ubuntu 20.04</li><li>GPU：NVIDIA GeForce® RTX 2070 SUPER</li><li>GPU Memory：8 GB</li><li>Memory：32 GB</li><li>CUDA Driver：470.82.00</li><li>CUDA：11.4</li><li>cuDNN：8.x.x</li><li>Python version(local)：3.8.10</li><li>Python version(docker)：3.6.9</li></ul><h4>實際硬體用量</h4><ul><li>模型大小（GPU）：986.6 MB</li><li>GPU 記憶體用量：5 GB（4877 MB）</li><li>Inference 所需時間輸入聲音長度花費時間：</li></ul><pre>   輸入聲音時長   輸出時間<br>1. 4s           11.7s<br>2. 8s           17.6s<br>3. 9s           17.9s<br>4. 17s          27.8s</pre><h4>Web Service and Deployment</h4><p>將 MakeItTalk 製作成 API，讓使用者可以透過網路服務的方式使用人臉生成的功能。</p><p><a href="https://github.com/livingbio/MakeItTalk">GitHub - livingbio/MakeItTalk</a></p><h4>Web Service Pipeline</h4><ul><li>輸入照片跟聲音 (256*256 jpg &amp; wav)</li><li>用照片生成的 landmark 跟聲音產生影片的 landmark</li><li>生成每一個frame的影像 (image2image)</li><li>將影片回傳給使用者</li></ul><h4>FastAPI</h4><p>用 FastAPI 實作一個 POST API。使用者傳入音檔跟圖片的 url，server下載輸入並經過 model 之後上傳到 Cloudinary 空間，回傳生成影片的 url 給使用者。</p><h4>Docker</h4><p>使用 <a href="https://github.com/ufoym/deepo">deepo</a> 的 pytorch image，將 MakeItTalk 的資源安裝到容器中，讓model 可以使用gpu運行。</p><h4>Demo</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIxBoAIgtHT4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIxBoAIgtHT4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIxBoAIgtHT4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fcfd25acc3ef13021138c4004ff87d5/href">https://medium.com/media/6fcfd25acc3ef13021138c4004ff87d5/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQWlLBZXKfYk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQWlLBZXKfYk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQWlLBZXKfYk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cc0b7d44e50b4de7946a2799f17444a/href">https://medium.com/media/0cc0b7d44e50b4de7946a2799f17444a/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhIqhA6NI948%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhIqhA6NI948&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FhIqhA6NI948%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4be918e3560a43e88ae80334b715fef5/href">https://medium.com/media/4be918e3560a43e88ae80334b715fef5/href</a></iframe><p>第一個 demo 可以發現背景晃動與額頭出現陰影。第三個 demo 可以看出只要可以偵測得到 Landmarks 都可以生成說話影片，但背景的植物也有失真的現象。總體而言，在背景清晰，臉部特徵清楚的狀況下，MakeItTalk 可以成功實現 talking face 的效果。</p><h3>適用場合與可能的商業應用</h3><p>大部分 Talking face generation model目前遇到的問題主要在解析度、時間跟結果的真實性上。尤其在影音媒體盛行的時代，跟真人的影音相比還是有很大的挑戰。如果能夠克服這些缺點，AI 帶來的商業價值可以更被凸顯。透過這項技術，可以使講者專注於聲音內容的表現，減少錄影造成的壓力及負擔。例如虛擬講師、播報或是報告等，都是可能的應用場景。</p><h3>Reference</h3><ul><li><a href="https://arxiv.org/pdf/2104.11116.pdf">Pose-Controllable Talking Face Generation by Implicitly Modularized Audio-Visual Representation</a></li><li><a href="https://arxiv.org/pdf/2104.07452.pdf">Audio-Driven Emotional Video Portraits</a></li><li><a href="https://wywu.github.io/projects/MEAD/support/MEAD.pdf">MEAD: A Large-scale Audio-visual Dataset for Emotional Talking-face Generation</a></li><li><a href="https://people.umass.edu/~yangzhou/MakeItTalk/MakeItTalk_SIGGRAPH_Asia_Final_round-5.pdf">speaker-aware talking-head animation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e16ade1475f1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gliacloud/audio-driven-talking-face-models-testing-and-deployment-e16ade1475f1">Audio Driven Talking Face Models Testing and Deployment</a> was originally published in <a href="https://medium.com/gliacloud">GliaCloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>