Skip to main content

Posts

Intro to Generative Adversarial Networks | GANs 001

   GANs consist of three terms Generative Adversarial Network. Let's understand these three terms first. Generative : A Generative Model takes input training sample from some distribution and learns to represents that distribution. Adversarial : It basically means Conflicting or Opposing. Networks : These are basically neural networks. So,Generative Adversarial Networks are deep neural network architecture comprising of two neural networks compete with each other to make a generative model. A GAN consist of two class models : Discriminative Model :- It is the one that discriminate between two different classes of data.It tries to identify real data from fakes created by the generator Generative Model :- The Generator turns noise into an imitation of the data to try to trick the discriminator Mathematically, A Generative Model 'G' to be trained on training data 'X' sampled from some true distribution 'D' is the one which, given some standard random distrib...

How to resize an Image using OpenCV

Media files tends to have a lot of information and processing it need a lot of time and computation. Resizing of image and videos is done to prevent computational strain Resizing is basically modifying the width and height. Many image recognition and machine learning applications benefit from scaling. By Resizing, the training time of a neural network can be significantly reduced. We'll use CV2.resize() method :- cv2.resize(src, dsize, interpolation)   src - takes the input image   dsize - take the output dimension as input in Tuple   Interpolation take three method as input  cv2.INTER_AREA : This is used when we need to shrink an image.It is the preferred method  cv2.INTER_CUBIC : A Bicubic method, is slow but more efficient.  cv2.INTER_LINEAR : This is primarily used when zooming is required. This is the default interpolation technique in OpenCV   The Function defined below will always work for Images, Video and Live Camera Feed . CODE FOR RESIZIN...

An Image For Computer Vision,Everything You Need To Know

 Image An Image consists of a set of pixels, which are the buildings blocks for any image. Every Pixels defines the color or the intensity of light.      Suppose an image has a resolution of 1000 x 750,which mean that it is 1000 pixels wide and 750 pixels tall. So the total number of pixels in our image will be 1000 * 750 = 7,50,000 pixels. An Image can be of two type :- Grayscale Color A Grayscale image can have a pixel value between 0 and 255, here 0 means the pixel is 'Black' and 255 means the pixel is ' White'. All the values in between represents various shades of gray. The matrix obtained from a Grayscale Image is 2-Dimensional ie it has width and height. A Color image is represented in RGB color space.The matrix obtained from a color image is a 3D matrix with parameter of Width, Height and Depth. Pixels in the RGB color space are no longer a scalar value like in a grayscale/single channel image – instead, the pixels are represented by a list of three value...

Frequently Asked Python Interview Questions - 2 | 2021

What is the difference between List and Tuple in Python?   A list can hold ordered sets of all data types in Python (including another list). A list's elements can be modified after creation. The implication of iterations is time-consuming in the list. Operations like insertion and deletion are better performed and consumes more memory. They are mutable The tuple type is very similar to the list type but the elements cannot be modified after creation (similar to strings). Implications of iterations are much faster in tuples. Elements can be accessed better and consumes less memory.They are immutable. What type of language is Python? Python is a dynamically typed interpreted language. These types of languages are typically referred to as “scripting” languages because code is not compiled to a binary form. By dynamically typed I mean that types do not need to be declared when coding, the interpreter figures them out at runtime. Python is neither a true compiled time nor pure...

Linear Regression for Machine Learning | Intro On Linear Regresssion 2021

 What is Linear Regression? This Algorithm is used to find the relationship between 2 continuous variables [ one independent variable and one dependent variable ]. It is a linear model which assumes a linear relationship between input and output variables. If we have single input variables then we call it as simple linear regression, if we have multiple we call it as multiple linear regression. It is both a statistical algorithm and machine language algorithm.  The Equation is 'Y = M * X + C' Y = Independent Value M = Slope/Weight X = Dependent Value C = Bias The Core idea is to obtain a line that best fits the data. 'Y' is the output variable we want to predict, X is the input variable and M & C can be called as coefficients that we need to estimate. To find m and b values we have methods like statistical method or ordinary least squares or gradient descent. How does it Work? Goal is to find the best fit line which minimize the error ( distance between the line and...

Frequenlty Used Machine Learning Terms | 2021

  Machine Learning sub-set of Artificial Intelligence focuses mostly on Machine. In this, computer algorithms are reinforced by training automatically, resulting in increased efficiency and better prediction. It detects similarities in the data, allowing data-driven decisions to be taken by the computer or system rather than being directly designed to do a certain task. Machine Learning Terms You Should Know Data Wrangling Data Wrangling also know as Data Cleaning or "munging", is the process of gathering, selecting, cleaning , structuring and enriching raw data into the desired format for better decision making in less time. Data wrangling help to create an efficient ETL (Extract Transform and Load) or create beautiful data visualizations.It can take a lot of work and time but it is worth the time and effort as it can give vital information from the data. Data Imputation  Data Imputation is the substitution of estimated values for missing or inconsistent data item (fields)....

Best IDE's For Programming in Dart | 2020

Dart is a general-purpose programming language that is open source. Originally, it was developed by Google and later accepted by ECMA as a standard. Dart is a new programming language that is intended both for the server and the browser.The Dart SDK ships with its compiler – the Dart VM .For various devices, it is a client-optimized programming language for applications. It is developed by Google and is used to construct apps for the smartphone, tablet, cloud, and web.  Best IDE's For Programming in Dart IntelliJ IDEA The Dart plugin adds Dart support to JetBrains IDEs such as IntelliJ IDEA with support for many other languages and systems, IntelliJ IDEA is an articulate Java IDE.For the development of computer applications, IntelliJ Concept is an interactive development environment written in Java. It is built by JetBrains, and is available in a proprietary commercial version as an Apache 2 Certified community edition. Android Studio    Android Studio used for Android ...

Must Know Computer Vision Tools | 2021

Computer vision is an interdisciplinary scientific field which deals with how digital images or videos can obtain high-level understanding from computers. It attempts to understand and automate activities that the human visual system can do from the point of view of engineering.Computer vision is also used in convenience stores, Driverless car training, everyday medical diagnostics, and in tracking the health of crops and animals, as an AI system that helps machines to interpret and mark images. We have seen from our study that machines are talented in identifying pictures. 5 Must Know Computer Vision Tools are: YOLO YOLO (You Only Look Once) is an open source object detection approach, which has a number of benefits compared to the other approaches. YOLO nicely learns the context and can learn 'generalized' representation so well that could be used on images with different objects. YOLO is extremely fast. Paper :- https://arxiv.org/pdf/1506.02640v5.pdf Scikit-Image  It is an o...