Convolutional Neural Networks are great at identifying all the information that makes an image distinct. When we train a deep neural network in Caffe to classify images, we specify a multilayered neural network with different types of layers like convolution, rectified linear unit, softmax loss, and so on. The last layer is the output layer … Continue reading How To Extract Feature Vectors From Deep Neural Networks In Python Caffe
Tag: Python
How To Debug In Python
As with all programming related tasks, debugging is an important part. If you are using an IDE, then you'll have some kind debugging feature available. But most Python programmers like to use vim or any text editor to write code and then execute it from the terminal. So how can you debug in this situation? … Continue reading How To Debug In Python
How To Create A Web Server In Python Using Flask
Let's say you've built an interesting Python application that runs locally on your machine. Great! Now how can you make that application usable as a service or an API? A lot of times, people build many services that need to play well together to build a final application. An obvious solution to this is to … Continue reading How To Create A Web Server In Python Using Flask
How To Read An Image From A URL In OpenCV-Python
Reading an image from a file is fairly straightforward in OpenCV-Python. But a lot of times, we would like to read an image from a URL and process it in OpenCV. One way to do it is to download the image, save it as a jpeg file, and then read it in OpenCV. But that's … Continue reading How To Read An Image From A URL In OpenCV-Python
Deep Learning With Caffe In Python – Part IV: Classifying An Image
In the previous blog post, we learnt how to train a convolutional neural network (CNN). One of the most popular use cases for a CNN is to classify images. Once the CNN is trained, we need to know how to use it to classify an unknown image. The trained model files will be stored as "caffemodel" … Continue reading Deep Learning With Caffe In Python – Part IV: Classifying An Image
Deep Learning With Caffe In Python – Part III: Training A CNN
In the previous blog post, we learnt about how to interact with a Caffe model. In this blog post, we will learn how to train a proper CNN. Up until now, we were dealing with a single layer network. We just defined it in a prototxt file and visualized it easily. If we want our … Continue reading Deep Learning With Caffe In Python – Part III: Training A CNN
Deep Learning With Caffe In Python – Part II: Interacting With A Model
I know that the title looks slightly misleading. If you are thinking that we will be talking about how to interact with fashion models at a coffee shop, you are in for a big surprise! In the previous blog post, we talked about how to define and visualize a single layer convolutional neural network (CNN). In this … Continue reading Deep Learning With Caffe In Python – Part II: Interacting With A Model
Deep Learning With Caffe In Python – Part I: Defining A Layer
Caffe is one the most popular deep learning packages out there. In one of the previous blog posts, we talked about how to install Caffe. In this blog post, we will discuss how to get started with Caffe and use its various features. We will then build a convolutional neural network (CNN) that can be … Continue reading Deep Learning With Caffe In Python – Part I: Defining A Layer
How To Train A Neural Network In Python – Part III
In the previous blog post, we learnt how to build a multilayer neural network in Python. What we did there falls under the category of supervised learning. In that realm, we have some training data and we have the associated labels. Now the goal is to train the neural network correctly label our training data. Once … Continue reading How To Train A Neural Network In Python – Part III
How To Train A Neural Network In Python – Part II
In the previous blog post, we discussed about perceptrons. We learnt how to train a perceptron in Python to achieve a simple classification task. If you need a quick refresher on perceptrons, you can check out that blog post before proceeding further. In a way, perceptron is a single layer neural network with a single … Continue reading How To Train A Neural Network In Python – Part II