<?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 Vin_itall on Medium]]></title>
        <description><![CDATA[Stories by Vin_itall on Medium]]></description>
        <link>https://medium.com/@vin0itall?source=rss-1706f136b208------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ny4YakFpGzLZtHWw_vOv6w.png</url>
            <title>Stories by Vin_itall on Medium</title>
            <link>https://medium.com/@vin0itall?source=rss-1706f136b208------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:12:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vin0itall/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[RAG-dolls.]]></title>
            <link>https://medium.com/bleep-bloop/rag-dolls-a8e0e737ef22?source=rss-1706f136b208------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8e0e737ef22</guid>
            <category><![CDATA[clones]]></category>
            <category><![CDATA[ai-clone]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Vin_itall]]></dc:creator>
            <pubDate>Sat, 16 Sep 2023 19:38:09 GMT</pubDate>
            <atom:updated>2024-01-24T18:05:57.642Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to build AI clones of your friends and family using Retrieval Augmented Generation.</h4><h3>Introduction:</h3><p>Welcome to the fascinating world of RAG-dolls! In this blog series, we will embark on an exciting journey to create AI clones of your friends and family using <strong>R</strong>etrieval<strong> A</strong>ugmented <strong>G</strong>eneration. Imagine having virtual versions of your loved ones at your fingertips, ready to engage in conversations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGC-ue0yfougGal3EdmiKQ.jpeg" /><figcaption>Source: <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion">Stable Diffuision by Stability AI</a></figcaption></figure><h3>Step 1: Gathering Substantial Data</h3><p>The foundation of creating realistic AI clones lies in acquiring substantial data about your friends and family. For this purpose, I decided to scrape over <a href="https://docs.google.com/document/d/1OkI71B7ZvABbLzOCfY-kp7xw6Fvlc-PGFW1XAixiq-s/edit?usp=sharing">1000</a> interview questions from the internet. I then shared this questionnaire with my friends and family, requesting them to fill it up with their responses. Their responses should be natural and something that they truly believe in. As it is their opinions or quirks that’ll help the model represent their personality. By collecting diverse and personal information, we aim to make our AI clones more accurate and authentic.</p><p>Few examples:</p><pre>Question: What do you do first thing on a weekday morning?<br>Answer: Motivate myself to get out of bed.<br><br>Question: What is the soft drink of choice?<br>Answer: Buttermilk for life.<br><br>Question: What was your childhood ambition?<br>Answer: I wanted to be a kindergarten teacher like my mom.<br></pre><h3>Step 2: Model Selection</h3><p>With the data in hand, the next crucial step is selecting an appropriate language model. Considering the computational constraints of my hardware, I opted to go with a 7-billion parameter, 4-bit quantized language model (LLM) and used my RTX-3070 GPU. I experimented with several models from Hugging Face. After careful evaluation, I found that LLama-2 outperformed other open-source models by a considerable margin in terms of producing relevant replies and being lucid even after being quantized to 4-bit precision. One could also use OpenAI’s ChatGPT APIs in absence of a GPU (I preferred a locally hosted model because the process involves sharing personal information).</p><h3>Step 3: Building Retrieval System</h3><p>Instead diving straight into fine-tuning, I decided to take a more cautious approach by building a vector database. I wanted to leverage retrieval augmented generation. This approach allows us to retrieve relevant information from the vector database and augment it with the language model’s language understanding, providing a more balanced and efficient learning process. Additionally, this helps to mitigate potential over-fitting issues caused by limited data.</p><h4>Brief Introduction to Retrieval Augmented Generation:</h4><p>Retrieval Augmented Generation is an AI framework that enables efficient communication with existing knowledge bases using a large language model. It uses an Information Retrieval System that provides data to the large language model to formulate a response.</p><p>The framework consists of 2 major components:</p><ol><li>Retriever System.</li><li>Large Language Model.</li></ol><p><strong>Retriever System</strong>: This component uses an embedding model to get an embedding for each question-answer pair and stores it in a key-value format. Upon being queried it returns the most relevant question answer pair based on the distance between embedding of the query and the question-answer pair.</p><p><strong>Large Language Model: </strong>LLM then takes the most relevant question-answer pairs as additional context to the query and augments on it to create a natural language answer.</p><p>I used <a href="https://www.trychroma.com/">chromaDB</a> to build embedding database for the retrieval system using <a href="https://huggingface.co/intfloat/e5-small">e5-small</a> as the embedding model.</p><h3>Step 4: Evaluating Model Performance</h3><p>To ensure the quality and accuracy of our AI clones, it’s vital to evaluate the model’s performance. During this step, I realized that this is a perfect setup to perform a Turing test. So I chose two close friends of the person whose clone I was testing. I asked them to identify which answer was coming from their friend and which one from the AI clone.</p><p>The following was their feedback on the exercise:</p><blockquote>Friend 1: It was able to capture the essence of the person, which I think is the most important thing in a computer clone (😂). That being said it did sound mechanical on a few instances and maybe a more conversational tone would have made it sound more human.</blockquote><blockquote>Friend 2: I think the AI gets the core of the person right, hence the accuracy with the answers. It’s just the expression that’s a little off, only because we also really know our friend and how she talks/texts/writes. It’s doing a great job though and I think as more data is given to the AI it will also express similarly and with more depth.</blockquote><h3>Example Answers From Our RAG-dolls:</h3><h4>Example 1</h4><pre>###SYSTEM_PROMPT: You are an AI clone of a person. ONLY use the relevant pieces from the CONTEXT to BRIEFLY answer the QUESTION in less than 30 words. Respond as the person would text message over phone WITHOUT using emojis. Do not make stuff up.<br>###CONTEXT:<br><strong><em>What always cheers you up when you think about it? Art ideas in my head which I&#39;m excited to execute.</em></strong><br>As a child, what did you think would be awesome about being an adult, but isn’t as awesome as you thought it would be? Freedom to do things our way.<br>Are you more optimistic or pessimistic?Optimistic.<br>What is your idea of perfect happiness?A healthy life spent with people you love.<br><br>###QUESTION:<br>What are you excited about in life?<br>    <br>###ANSWER:<br>Art ideas in my head which I&#39;m excited to execute.</pre><p>LLM here was able to choose the most relevant piece of context to answer the question.</p><h4>Example 2</h4><pre>###SYSTEM_PROMPT: You are an AI clone of a person. ONLY use the relevant pieces from the CONTEXT to BRIEFLY answer the QUESTION in less than 30 words. Respond as the person would text message over phone WITHOUT using emojis. Do not make stuff up.<br>###CONTEXT:<br>What are your hobbies?I like to paint, travel and dance.<br><strong><em>Are you indoorsy or outdoorsy?I&#39;m indoorsy.</em></strong><br>Do you play a sport?Are you any good.<br>What haunts you?Making major life decisions that I might regret later.<br><br>###QUESTION:<br>Are you adventurous?<br>    <br>###ANSWER:<br>I&#39;m indoorsy, so no extreme adventures for me.</pre><p>LLM was able to choose the most relevant piece of context and was able to extrapolate that being an indoorsy person would translate to the person being not very adventurous.</p><h4>Example 3</h4><pre>###SYSTEM_PROMPT: You are an AI clone of a person. ONLY use the relevant pieces from the CONTEXT to BRIEFLY answer the QUESTION in less than 30 words. Respond as the person would text message over phone WITHOUT using emojis. Do not make stuff up.<br>###CONTEXT:<br><strong><em>How do you make yourself sleep when you can&#39;t seem to get to sleep? Breathing exercises and having good thoughts..</em></strong><br>What do you do when you hear something fall in the middle of the night while you are in bed? Quietly investigate while preparing to self-defend..<br>What do you do on a Sunday afternoon?Sleep or watch tv.<br>What do you do first thing on a weekday morning?Motivate myself to get out of bed.<br><br>###QUESTION:<br>What makes you stay up at night?<br><br>###ANSWER:   <br>I can&#39;t seem to get to sleep when I&#39;m feeling anxious or worried about something. I try to calm myself down by doing breathing exercises and focusing on positive thoughts.</pre><p>LLM was able to choose the most relevant piece of context and was able to extrapolate how the person would be feeling to justify the provided context.</p><h4>Example 4</h4><pre>###SYSTEM_PROMPT: You are an AI clone of a person. ONLY use the CONTEXT provided to BRIEFLY answer the QUESTION in less than 30 words. Respond as the person would text message over phone WITHOUT using emojis. Answer using only the CONTEXT, do not make stuff up.<br>###CONTEXT:<br><strong><em>What is your favorite day of the week?Saturday.</em></strong><br><strong><em>What do you do on a Sunday afternoon?Sleep or watch tv.</em></strong><br><strong><em>What do you do on a Friday night?Hang out with my friends.</em></strong><br>What do you do first thing on a weekday morning?Motivate myself to get out of bed.<br><br>###QUESTION:<br>How do you like to spend your weekends?<br><br>###ANSWER:<br>Saturdays are my favorite! I usually sleep in, then hang out with friends or family.</pre><p>LLM was able to pick out and summarize from multiple relevant pieces of contexts.</p><h3><strong>Future Plans:</strong></h3><p>With the foundation laid, there are exciting developments on the horizon for the project:</p><ol><li>Building a Front-end Interface: To enhance user experience, I plan to create a user-friendly front-end interface where interactions with the AI clones become seamless and engaging.</li><li>Extorting More Data from Friends: As the AI clones grow and learn, they become more powerful and authentic with access to more data. Encouraging friends and family to contribute additional information will lead to richer, more personalized AI clones.</li><li>Exploring Fine-tuning: Fine-tuning the model with domain-specific data can further improve the AI clones’ expertise in particular subjects or fields of interest.</li><li>Finding a Good Evaluation Question Set: The search for a question set for evaluating the AI clones’ abilities will be ongoing. This set will help benchmark their performance and track progress over time.</li><li>Voice Cloning: Beyond text-based interactions, exploring voice cloning technology will enable our AI clones to speak with the familiar voices of our friends and family, adding another layer of authenticity to the experience.</li></ol><p>[Note: This blog series is for illustrative and educational purposes only. Creating AI clones raises important ethical considerations, and any real-world application should be approached with responsible AI usage and consent from all involved parties.]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8e0e737ef22" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bleep-bloop/rag-dolls-a8e0e737ef22">RAG-dolls.</a> was originally published in <a href="https://medium.com/bleep-bloop">Bleep-Bloop</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Canny Edge Detection.]]></title>
            <link>https://medium.com/bleep-bloop/canny-edge-detection-712c45ee1431?source=rss-1706f136b208------2</link>
            <guid isPermaLink="false">https://medium.com/p/712c45ee1431</guid>
            <category><![CDATA[opencv]]></category>
            <category><![CDATA[edge-detection]]></category>
            <category><![CDATA[canny-edge-detection]]></category>
            <category><![CDATA[sobel-operator]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Vin_itall]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 06:29:11 GMT</pubDate>
            <atom:updated>2020-06-11T05:53:35.985Z</atom:updated>
            <content:encoded><![CDATA[<p>A multi-stage algorithm that filters out edges in a picture.</p><p>Edge detection finds it’s role in a lot of important applications in image and video processing, like whenever you’re trying to get your self-driving agent to drive on the right side of the road(detecting lanes) and not be penalized for drunk driving or you’re trying to detect it’s license plate to penalize it for drinking and driving.</p><p>In any image an edge can be found wherever there is a sharp change in the intensity or color. In order to understand how <strong>Canny Edge Detection</strong> works we first need to understand how the <strong>Sobel Operator </strong>works.</p><h3><strong>Sobel Operator.</strong></h3><p>Applying a sobel operator or a sobel filter to an image is convolving the image with the two 3x3 kernels one in X direction and the other in Y direction to determine it’s gradients in both vertical and horizontal directions.</p><p>The kernels in the X and the Y directions are</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*OoELPSy0jaO8ZxWULh3UWw.png" /><figcaption>Sobel Kernels For X and Y direction.</figcaption></figure><p>These two kernels are convolved with the target image and the magnitude of the gradient at each point in the image combining the Gradients in the X and the Y directions is computed as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*g9FE5FnVmdulEHqx2aKvMA.png" /></figure><p>Using the Gradient values in the X and the Y directions we can also compute the gradient’s direction using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/124/1*IlEoGBGSqJyXBaSgQYoIhQ.png" /><figcaption>Direction Of The Gradient.</figcaption></figure><p>Let’s take a look at the implementation of whatever we have learned.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/afe38a0b7715a055aeda269e0c3ee12a/href">https://medium.com/media/afe38a0b7715a055aeda269e0c3ee12a/href</a></iframe><p>We get the output as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*ayQwgmNm3e7pJxm2hTBcmQ.png" /></figure><p>As you can observe applying Sobel in X on this pretty checkered shorts of mine, it gives us the edges in the X direction and in Y direction it gives us the edges in the Y direction.</p><p>You must thinking “Yo! this blog’s a scam where are my edges?! These aren’t edges!!”. So, let’s quickly get to Canny Edge Detection before you start commenting in capitals.</p><h3>Canny Edge Detection</h3><p>Canny Edge Detection is a 5 step algorithm that is used to detect edges(duh!).</p><ol><li>Reducing Noise By Applying Blur.</li><li>Calculating Gradient.</li><li>Non-Maximum Suppression.</li><li>Double Threshold.</li><li>Edge Linking.</li></ol><h4><strong>Step 1</strong>. Applying Blur.</h4><p>We applying a blur to make the image smoother and remove out the noise. You can learn more about it on this article<em> </em><a href="https://medium.com/bleep-bloop/image-convolution-f6c243574557"><em>https://medium.com/bleep-bloop/image-convolution-f6c243574557</em></a> .</p><h4><strong>Step 2.</strong> Calculating Gradient.</h4><p>Calculating the Sobel gradient for the image using Sobel operator in both directions.(See I told you needed to understand Sobel operator first)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*g9FE5FnVmdulEHqx2aKvMA.png" /></figure><h4><strong>Step 3.</strong> Non-Maximum Suppression.</h4><p>Non-maximum suppression is applied in order to get thinner edges. So, to get the thinnest possible edges the algorithm tries to get a pixel with the most intensity in a given direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*ur_V4ejSeYckmAj0A7VonA.png" /><figcaption>Non-Maximum Suppression Example.</figcaption></figure><p>So the image will look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*RE4RuP5fQ8DErnIPyS_Zxg.png" /><figcaption>Image After Non-Maximum Suppression.</figcaption></figure><p>So, the edge is now sharper than it was before applying Non-Maximum Suppression to the pixel.</p><h4><strong>Step 4.</strong> Double Threshold.</h4><p>Double thresholding helps us to focus on the edges that we really need and filters out all the additional noise that non-maximum suppression couldn’t.</p><ul><li><strong>High Threshold </strong>is used to detect the pixels that we’re are sure that contributes to an edge and isn’t noise, by setting high threshold(high threshold is nothing but a value of intensity ranging from 0 to 255) we take all the pixels whose intensity is higher than the high threshold as definitely contributing to the edge.</li><li><strong>Low Threshold </strong>is used to filter out all the pixels that are irrelevant to us i.e, by setting low threshold(again a value of intensity ranging from 0 to 255) we ignore all the pixels having intensity lower than this threshold as noise.</li><li>All the pixels that lie between the high and the low threshold are only taken into consideration if and only if they are in some way connected to or a part of the edge that has pixels above the high threshold, the pixels having no such connection are ignored as noise, this is done by edge linking.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*Ovj2MJGmIjknvC0oq-sdpA.png" /><figcaption>Double Threshold Example.</figcaption></figure><p>In the above given scenario, anything below the low threshold won’t be taken into consideration and will be treated as noise.</p><p>Since A is above high threshold it will be taken into consideration in the output image.</p><p>Now, Since B is in between high and low threshold and has no link to any pixels above high threshold, will be neglected and treated as noise by the algorithm.</p><p>However, C being in between high and low thresholds but having a link or being in continuation of the edge A which is well above high threshold, C will be considered in the output image.</p><h4><strong>Step 5.</strong> Edge Linking.</h4><p>The above process of linking C to A, even though the intensity of C is lesser than the high threshold is called edge linking, where the algorithm changes the value of intensities of pixels(between High and Low thresholds) to make them brighter in the presence of pixels(above High threshold) that have high values of intensity to form a neat and sharp edge.</p><p>Now let’s take a look at the implementation.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f56c20f15f66489f4af81124b69867fb/href">https://medium.com/media/f56c20f15f66489f4af81124b69867fb/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*J2wb7yQ-7OPBOgtxwRmhng.png" /><figcaption>Original Image Vs Image After Canny Edge Detection.</figcaption></figure><p>Following is an application of edge detection where I am detecting the lanes of a street in GTA San Andreas…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*c9zHocGJ9zLC6fgDwG3y0g.gif" /></figure><p>You can find the code used for detecting lanes in Video Games in the following GitHub repository.</p><p><a href="https://github.com/Vin-itall/Detecting-Lanes-In-Videogames-With-OpenCV">Vin-itall/Detecting-Lanes-In-Videogames-With-OpenCV</a></p><p>So that’s how developers keep self driving agents sober and save lives. That’s all for this blog.</p><p>Stay tuned for more…Bleep-Bloop.</p><h3>References</h3><ul><li><a href="https://docs.opencv.org/trunk/da/d22/tutorial_py_canny.html">OpenCV: Canny Edge Detection</a></li><li><a href="https://en.wikipedia.org/wiki/Canny_edge_detector">Canny edge detector - Wikipedia</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=712c45ee1431" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bleep-bloop/canny-edge-detection-712c45ee1431">Canny Edge Detection.</a> was originally published in <a href="https://medium.com/bleep-bloop">Bleep-Bloop</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Image Convolution.]]></title>
            <link>https://medium.com/bleep-bloop/image-convolution-f6c243574557?source=rss-1706f136b208------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6c243574557</guid>
            <category><![CDATA[box-blur]]></category>
            <category><![CDATA[convolution]]></category>
            <category><![CDATA[gaussian-blur]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Vin_itall]]></dc:creator>
            <pubDate>Sat, 26 Oct 2019 10:47:20 GMT</pubDate>
            <atom:updated>2020-06-11T05:30:25.596Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The ma(th)gic behind blurs in image processing.</em></p><p>Whenever you choose a filter to apply on your selfies, this is what goes on under the hood to provide your image that extra bit of glamour that you think you lack. However, it takes a lot more than a blur to make you look better but it’s definitely a part of the process.</p><p>Applying blur to an image means convolving(In mathematics, convolution means to combine two mathematical functions to give a third function) the image with a kernel(a square matrix of pixels with predefined values depending on the type of blur).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*ODo76lQENCV_luQ3D9Pk3g.jpeg" /></figure><p><strong>Box blur</strong> and <strong>Gaussian blur</strong> are some of the most commonly used blurs in the the field of image processing.</p><h3>Box Blur</h3><p>Box blur is also known as a box linear filter or Mean blur.</p><p>The <strong>Box blur</strong> works as follows,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PwfAjy2PrWUHyg7g22KbtQ.png" /><figcaption>Applying Box Blur On An Image.</figcaption></figure><p>In the first step, the kernel is mapped onto our input image and with the pixel of interest (‘28’) in the center.</p><p>Then an intermediate matrix is generated of the size of the kernel, which is then used to calculate the average.</p><p>This average value is then rounded and substituted in the place of the pixel and the process is repeated for each pixel in the region of interest.</p><p>So, basically applying a Box blur is substituting a pixel’s value with the <strong>average value</strong> of all the pixel’s around it and the pixel itself.</p><h3><strong><em>Gaussian Blur</em></strong></h3><p>Where the values of pixels in an Box blur kernel is all unity, the pixel values of a <strong>Gaussian Kernel</strong> depends on the Gaussian function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*_tJYVrbEZPQ-iqWUDjTFjg.jpeg" /><figcaption>Gaussian Function For n Dimensions</figcaption></figure><p>Where <strong><em>σ </em></strong>is the standard deviation of the Gaussian Distribution, which is a bell shaped curve. Standard deviation represents the width of the distribution. In terms of the blur it means that <strong><em>higher the value of standard deviation larger the value carried by the peripheral pixels and the blurrier the resulting image will be</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*uLwYJ5gjD-F52dIgtoY-hQ.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Gaussian_blur">Source : Wikipedia</a></figcaption></figure><p>The following is how a<strong> Gaussian Blur</strong> is applied to an image,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFhZSSE-rz_WXyH63KAf0g.png" /><figcaption>Applying Gaussian Blur On An Image.</figcaption></figure><p>The process is same as when a Box blur is applied to an image, just the kernel used here changes.</p><p>Applying Gaussian blur to an image is equivalent to substituting the pixel’s value with the <strong>weighted average</strong> of the values of the pixels in it’s neighborhood in the output image.</p><p>As you can see the Gaussian blur gives the maximum weight to the pixel(center) itself and the least to the corners and therefore is more edge preserving than Box blur.</p><p>A larger standard deviation will require a larger kernel to represent it and therefore a lot more pixels will contribute to the weighted average than the kernel with smaller standard deviation and the output image will therefore be blurrier as compared to Gaussian blur applied with kernel representing a smaller standard deviation.</p><p>Great! Now you know what made your teenage face appear smoother than it was. Keep following…Bleep-Bloop.</p><h3><strong>Resources</strong></h3><p>The following are the resources that cover the topics in detail and will help you further explore the subject in depth.</p><ol><li><a href="https://en.wikipedia.org/wiki/Box_blur">https://en.wikipedia.org/wiki/Box_blur</a></li><li><a href="https://en.wikipedia.org/wiki/Gaussian_blur">https://en.wikipedia.org/wiki/Gaussian_blur</a></li><li><a href="https://www.youtube.com/watch?v=C_zFhWdM4ic">How Blurs &amp; Filters Work — Computerphile</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6c243574557" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bleep-bloop/image-convolution-f6c243574557">Image Convolution.</a> was originally published in <a href="https://medium.com/bleep-bloop">Bleep-Bloop</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>