<?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[Stories by Matthew Kenney on Medium]]></title>
        <description><![CDATA[Stories by Matthew Kenney on Medium]]></description>
        <link>https://medium.com/@matthewkenney?source=rss-4bd7efa843bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sAyYGHAH1fxEa1zyi0lNgA.png</url>
            <title>Stories by Matthew Kenney on Medium</title>
            <link>https://medium.com/@matthewkenney?source=rss-4bd7efa843bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@matthewkenney/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[OpenPose with Conditional Adversarial Networks]]></title>
            <link>https://medium.com/@matthewkenney/openpose-with-conditional-adversarial-networks-29127378cf1d?source=rss-4bd7efa843bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/29127378cf1d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[fake-news]]></category>
            <category><![CDATA[pix2pix]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gans]]></category>
            <dc:creator><![CDATA[Matthew Kenney]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 14:45:34 GMT</pubDate>
            <atom:updated>2019-04-01T14:45:34.591Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve started doing some preliminary work with a OpenPose to Pix2PixHD pipeline. Pix2Pix is a conditional adversarial network designed to mappings from an input image to and output image and synthesize like images off of this mapping. I became interested in working with Pix2Pix and other GAN networks after I was asked to lead a series of workshops on Design and Artificial Intelligence at Duke University. As Pix2Pix and other GANs have such expressive outputs, I naturally gravitated towards this area.</p><p>These experiments combine OpenPose and Pix2pix to allow the user to transfer their movement and gestures to the output of a different character. There are already methods to transfer movement data to 3D character models using rigged models and OSC. The novelty of Pix2Pix is the ability to transfer to realistic images of real people.</p><p>Pix2Pix is a conditional deep convolution generative adversarial network. Two networks are developed, the generator (g) and discriminator (d). For more information on deep convolutional generative adversarial networks, see my post ‘Working with Generative Adversarial Networks’. Conditional Adversarial Networks differ from traditional GANs by conditioning the (z) noise that the generator samples from with an input image. This allows the network to learn the conditional input as well as the training sample. The network is fed pairs of training images and conditioning input images (y), with each training image corresponding to an conditioning input image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*H8mYuvyqK6dOcYcW" /></figure><p>In this work, I constructed the pipeline by taking the output of OpenPose, along with the original images from a video and using that as a mapping for any OpenPose output. Because the network generalizes on OpenPose mappings, we can take a new video and inference on each frame to generate output on the new movements, as demonstrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZF-5j-CIidbEDnGTlgzv6w.png" /></figure><p>I trained this model using Pix2PixHD over 54 epochs. The model took about 2.5 days to train on ~1300 image input pairs. As this was my first attempt, the model overfit. If you watch the video closely, the character fades in an out of sharpness, as it fits better on poses it has seen vs. new poses. The output of this model, while a little rough, is pretty accurate in relation toward the input images however. Output of the model alone can be found below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F312326640%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F312326640&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F753350863_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/acba6e29e7a672fc23e6743878993e56/href">https://medium.com/media/acba6e29e7a672fc23e6743878993e56/href</a></iframe><p>On my second attempt, trained the model with more images, and reduced the network size to combat overfitting. I also chose a cleaner video (white background, no watermarks) to clean up the output of the model further. For this attempt, I trained the model for ~40 epoch.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F312326594%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F312326594&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F753350781_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e18fcf1db1a488d0c7605ca3687e837/href">https://medium.com/media/4e18fcf1db1a488d0c7605ca3687e837/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29127378cf1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Fake Images with Glow]]></title>
            <link>https://medium.com/@matthewkenney/creating-fake-images-with-glow-ec81f9bdf72d?source=rss-4bd7efa843bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec81f9bdf72d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[glow]]></category>
            <category><![CDATA[fake-news]]></category>
            <category><![CDATA[gans]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Matthew Kenney]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 14:41:27 GMT</pubDate>
            <atom:updated>2019-04-01T14:41:27.120Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been investigating some initial applications of the recent Glow model released by OpenAI. Glow is a reversible generative model which uses invertible 1x1 convolutions. It allows users to interpolate between facial characteristics and attributes like hair color, beard density, smile, and age. It can also interpolate between to encoded images by sampling the points between the two images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzMkFceiOmjPtMw8gBJKrg.jpeg" /><figcaption>Interpolation between Hillary Clinton and Chelsea Clinton</figcaption></figure><p>To me what is most interesting is not the interpolation, but the subtle changes in still images of faces in between the interpolations. Keeping in the theme of working with fake news, one can image scenarios where one would want to A/B test various false images. One could imaging testing these images to different demographics in a political setting or customers in an advertisement setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ia3TXRfz1QPF-xZruzFXZA.jpeg" /><figcaption>Post interpolation stock photo image with Glow and Photoshop (Top: original image, middle: image modified with Glow output, bottom: Glow output blended onto original image with photoshop)</figcaption></figure><p>The ability to subtly transform between age, skin tone, hair color, and facial features is a powerful and potentially harmful (or at least deceitful tool). Imagine a scenario in which polling suggested that voters would be more willing to vote for Barrack Obama if he had lighter skin and more traditionally white-masculine features. Using a Glow network would allow for an unlimited interpolation between these spaces, an create opportunities for hyper-targeted political advertising, potentially at a personal level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgjtzwGfThz7j3q-soPbQw.jpeg" /><figcaption>Interpolation between Barrack Obama and white male model</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQaK0bh5Z-3uOdEHuR48MQ.jpeg" /><figcaption>Post interpolation image rework with Glow and Photoshop</figcaption></figure><p>There is a long history of politicians and public figures doctoring their images in photoshop. This came to light most recently with the realization that many of Donald Trumps photos had been doctored to make him appear taller and more fit. With networks like glow, this doctoring could be extended to facial features in seemingly unlimited ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9N-DaWdwyLBsNBhkCLp8Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec81f9bdf72d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fake News with OpenPose and Conditional Adversarial Networks]]></title>
            <link>https://medium.com/@matthewkenney/fake-news-with-openpose-and-conditional-adversarial-networks-f7f9f826af70?source=rss-4bd7efa843bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7f9f826af70</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[fake-news]]></category>
            <category><![CDATA[gans]]></category>
            <dc:creator><![CDATA[Matthew Kenney]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 14:40:32 GMT</pubDate>
            <atom:updated>2019-04-01T14:40:32.531Z</atom:updated>
            <content:encoded><![CDATA[<p>My recent work with OpenPose and conditional adversarial networks lead me to start thinking about the generation of fake news media. I decided to develop a model based off of a video someone who could pass as a news anchor with a green screen background. The google search took a few minutes but I was able to come up with a relatively good stock photo video of a woman talking in front of a green screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itdNi9hN6wXWUwXEwe1fZA.png" /><figcaption>(Left) Input Image (Right) Open-Pose output</figcaption></figure><p>I applied OpenPose to generate the data as I had in my previous work. This time however, instead of using Tensorflow openpose, I used the original CMU version, which allow for easy access of head and hand data and more accurate skeleton tracking data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8O_SQAn3csU5-CCCPHjAw.jpeg" /><figcaption>pix2pix model output</figcaption></figure><p>From that data I was able to develop a pretty solid model with Pix2PixHD. I generated about 2000 frame of OpenPose data from the initial video. I then built a model off of the original frames and open pose frames. From there I took a video of myself talking, and inferenced the OpenPose data from the video of myself onto the model of the speaker. Below is the output after only 7 epochs.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F310176331%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F310176331&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F750705136_640.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="874" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fb159679aeea05d285536bcc5e4da0c/href">https://medium.com/media/6fb159679aeea05d285536bcc5e4da0c/href</a></iframe><p>I couldn’t create “fake news” without putting the output into a fake newsroom. I knew nothing about green screens, Adobe Premier Pro, or video editing, but after a couple of quick tutorials I was up and running. The video below was developed after training the Pix2pix model for 30 or so epoch on the 2000 input frame pairs. It ran overnight and took about 12hrs. It’s worrisome how easy it is to produce videos like these. For about $12 in GPU time on an AWS EC2 instance, a lone developer like myself can create an (not quite) passable model, decide what movements it will make, and potentially sub in some nefarious speech of their own.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F310175509%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F310175509&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F750704279_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf4b82fbffa06f569d162d21ff82a88d/href">https://medium.com/media/cf4b82fbffa06f569d162d21ff82a88d/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F310175817%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F310175817&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F750704749_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb1ead808261cc319a7d026ec0b8d77a/href">https://medium.com/media/fb1ead808261cc319a7d026ec0b8d77a/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F310410803%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F310410803&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F750991140_640.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="874" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/864cbe2916ea9800bf505459472a260e/href">https://medium.com/media/864cbe2916ea9800bf505459472a260e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7f9f826af70" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>