<?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 Thejan Wijesinghe on Medium]]></title>
        <description><![CDATA[Stories by Thejan Wijesinghe on Medium]]></description>
        <link>https://medium.com/@thejanw?source=rss-c686b7c9879f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jAl-SzGrJLkh5BdiaJgGag.png</url>
            <title>Stories by Thejan Wijesinghe on Medium</title>
            <link>https://medium.com/@thejanw?source=rss-c686b7c9879f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:55:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thejanw/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[An introduction to Intel Nervana Neon]]></title>
            <link>https://thejanw.medium.com/an-introduction-to-intel-nervana-neon-3e65cab08040?source=rss-c686b7c9879f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e65cab08040</guid>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[neon]]></category>
            <category><![CDATA[intel]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Thejan Wijesinghe]]></dc:creator>
            <pubDate>Sat, 16 Jun 2018 08:10:15 GMT</pubDate>
            <atom:updated>2018-06-16T17:35:41.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7m2QxJXgzp-1bvjA.jpg" /></figure><h3><strong>What is Neon?</strong></h3><p>Deep Learning, due to its unprecedented successes, there has been a lot of hype for deep learning, today. This hype has given birth to lots of deep learning frameworks, offering building blocks for designing, training, validating and benchmarking deep neural networks, through a high level programming interface. There are widely used deep learning frameworks such as <a href="https://github.com/caffe2/caffe2">Caffe2</a>, <a href="https://github.com/Microsoft/CNTK">CNTK</a>, <a href="https://github.com/pytorch/pytorch">PyTorch</a>, <a href="https://github.com/tensorflow/tensorflow">TensorFlow</a>, etc that rely on GPU-accelerated libraries such as cuDNN and NCCL.</p><p><a href="https://github.com/NervanaSystems/neon">Neon</a> is now Intel’s reference deep learning framework committed to best performance on all hardware designed for ease-of-use and extensibility. Neon was originally developed by Nervana Systems which is now acquired by Intel. Main reasons, I looked into neon were their keras-like API, comprehensive support for popular datasets and their rich model zoo. Few months back, I started training models on Intel AI cloud, a system based on Intel® Xeon Phi™ processors. I was doing all sorts of <a href="https://www.tensorflow.org/performance/performance_guide#optimizing_for_cpu">performance tweaks</a> to optimize my tensorflow code, that’s where I learnt that Tensorflow is optimized for CPU with the use of <a href="https://github.com/intel/mkl-dnn">Intel® Math Kernel Library for Deep Neural Networks</a> (Intel® MKL-DNN) primitives. MKL-DNN takes advantage of the parallelization and vectorization capabilities of Intel processors. These optimizations also provide speedups for the consumer line of processors such as Intel core i5 and core i7. Neon also uses MKL-DNN to optimize models in Intel CPU environments, making Neon an ideal candidate for my experiments.</p><blockquote>Specifying the dataset, building a model from the specified layers, cost function, learning rule, evaluation and optional benchmarking(e.g. BLEU) are the key functions of a deep learning project, Neon has elegantly abstracted out difficulties of implementing them.</blockquote><p>The high level API structure of neon is quite similar to that of keras. Since I’m a huge Keras and Tensorflow fan, based on my experience with Neon for few weeks, I thought I would write a post based on the key components of Neon with respect to Keras and Tensorflow. Although there is a similarity between the APIs of Keras and Neon, we should remember that Keras is a high-level API running on top of multiple switchable backends, namely TensorFlow, CNTK and Theano, while Neon has its own backend.</p><h3><strong>Neon’s built-in support for datasets</strong></h3><p>Neon has a bunch of pre-defined modularized data iterator functions for popular datasets in image classification, image captioning, text classification, text generation and question answering. Check out their dataset classes, which I’ve taken from Neon docs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*3IWcebF9nsKOSpNN" /><figcaption>Neon’s dataset classes</figcaption></figure><p>The imports of these classes will automatically download the dataset into your machine and process it to a data format where you can directly use as train set for Neon’s model.fit() method. This is great because I’ve been using Keras and it only has dataset imports for mnist, imdb, reuters, cifar10, cifar100, boston_housing and fashion_mnist. If a dataset is huge, it’s not so easy to go and look at its annotations, for an example, assume you have annotations in json files, if the json file is too big, text editors won’t be able to open it, imagine writing your own scripts for processing a dataset(you can’t even open) to the desired input format(X and y) for your deep learning project.</p><h3><strong>Neon’s model zoo</strong></h3><p>Neon has a pretty extensive set of models with weights at their <a href="https://github.com/NervanaSystems/ModelZoo">model zoo</a>, you could find an overview of them, below.</p><ol><li>Image Classification with GoogLeNet (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/ImageClassification/ILSVRC2012/Googlenet">model</a> | <a href="http://arxiv.org/pdf/1409.4842.pdf">paper</a>) on <a href="http://www.image-net.org/">ImageNet</a></li><li>Image Classification with VGG (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/ImageClassification/ILSVRC2012/VGG">model</a> | <a href="https://arxiv.org/abs/1409.1556">paper</a>) on <a href="http://www.image-net.org/">ImageNet</a></li><li>Image Classification with AlexNet (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/ImageClassification/ILSVRC2012/Alexnet">model</a> | <a href="http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks">paper</a>) on <a href="http://www.image-net.org/">ImageNet</a></li><li>Image Classification with ResNets (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/ImageClassification/CIFAR10/DeepResNet">model</a> | <a href="http://arxiv.org/abs/1512.03385">paper</a>) on <a href="https://www.cs.toronto.edu/~kriz/cifar.html">CIFAR-10</a></li><li>Image Classification with All CNN (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/ImageClassification/CIFAR10/All_CNN">model</a> | <a href="http://arxiv.org/abs/1412.6806">paper</a>) on <a href="https://www.cs.toronto.edu/~kriz/cifar.html">CIFAR-10</a></li><li>Object localization with Fast-RCNN (<a href="https://github.com/NervanaSystems/ModelZoo/blob/master/ObjectLocalization/FastRCNN">model</a> | <a href="https://arxiv.org/abs/1504.08083">paper</a>) on <a href="http://host.robots.ox.ac.uk/pascal/VOC/">PASCAL VOC</a></li><li>Scene Classification with ResNets (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/SceneClassification/DeepResNet">model</a> | <a href="https://arxiv.org/abs/1512.03385">paper</a>) on <a href="http://6.869.csail.mit.edu/fa15/project.html">Mini-Places2</a></li><li>Image Captioning with CNN-LSTM (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/ImageCaptioning/LSTM">model</a> | <a href="https://arxiv.org/abs/1411.4555">paper</a>) on <a href="http://nlp.cs.illinois.edu/HockenmaierGroup/8k-pictures.html">flickr8k</a></li><li>Reinforcement Learning with Deep Q-network (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/DeepReinforcement">model</a> | <a href="https://www.nature.com/articles/nature14236">paper</a>) using <a href="https://gym.openai.com/">OpenAI Gym</a></li><li>Question Answering with GRU/LSTM (<a href="https://github.com/NervanaSystems/ModelZoo/blob/master/NLP/QandA/bAbI">model</a> | <a href="https://arxiv.org/abs/1502.05698">paper</a>) on <a href="https://research.fb.com/downloads/babi/">bAbI</a></li><li>Sentiment Classification with LSTM (<a href="https://github.com/NervanaSystems/ModelZoo/blob/master/NLP/IMDB">model</a> | <a href="https://arxiv.org/abs/1503.00185v1">paper</a>) on <a href="https://datasets.imdbws.com/">IMDB</a></li><li>Video Action Classification with Convolutional 3D (<a href="https://github.com/NervanaSystems/neon/tree/master/examples/video-c3d">model</a> | <a href="https://arxiv.org/abs/1412.0767v4">paper</a>) on <a href="http://crcv.ucf.edu/data/UCF101.php">UCF101</a></li><li>Transfer Learning with Multi Scale Sampling (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/TransferLearning/PASCALVOC">model</a> | <a href="http://www.di.ens.fr/willow/pdfscurrent/oquab14cvpr.pdf">paper</a>) on <a href="http://host.robots.ox.ac.uk/pascal/VOC/">PASCAL VOC</a></li><li>Speech Recognition with Deep Speech 2 (<a href="https://github.com/NervanaSystems/ModelZoo/tree/master/Speech/DeepSpeech">model</a> | <a href="https://arxiv.org/abs/1512.02595v1">paper</a>) on <a href="http://www.openslr.org/12/">Librispeech</a></li></ol><h3><strong>Layers and layer wrappers in Neon</strong></h3><p>Specifying layers in Neon is easy as in Keras, almost all the layers are abstracted into an easy-to-understand form. Check this out,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*UIAc8TUBM2_YWEr4" /><figcaption>Neon’s layer hierarchy</figcaption></figure><p>The ones who have used to Keras know that Keras has two ways to initialize a model, they are the Sequential() model, and the Model() class used with the functional API. Neon also has model initializers, but Neon calls them layer wrappers instead of models. Their Sequential() layer wrapper class works the same way as Keras Sequential() class, but Neon also has few other layer wrappers to realize your neural network architecture. Tree(), MergeBroadcast(), MergeMultistream() are the remaining layer wrapper classes, here the Tree() can be used to represent branching pathways of layers where the overall structure has multiple output nodes. MergeBroadcast() consists of multiple Sequential pathways that receive input from a single input layer (the broadcast), and then combine their outputs via concatenation (the merge). MergeMultistream() are special cases of the MergeBroadcast() container, except that they originate from the input provided to the model. But MergeBroadcast() and MergeMultistream() can be derived using Sequential() and Tree() wrappers. Guess what? Neon also has a class called Model() just like Keras Model() which allows you to represent the network architecture, either provided as a layer container, a list of layers, or loaded from a previously saved model file. But it won’t allow you to provide inputs and outputs of layers to the Model() object as arguments when initializing it, I would love to have that feature in Neon, having that ability allows an user to easily define very complex networks. Keras Model() class allows you to pass inputs and outputs as arguments to the Model() object, personally, I find it easier than using Tree() class in Neon, perhaps someone else might find the Neon’s implementation easier.</p><p>Other than that, Neon has almost all the implementations you might need in your deep learning project for costs, metrics, initializers, optimizers and learning schedules.</p><h3><strong>Data loading in Neon w.r.t Tensorflow and Keras</strong></h3><p>Data loading plays a key role in a deep learning pipeline, efficiently loading your data into memory while training your model parameters with the loaded data could speedup the overall training process, giving you more time to change your code or tune your hyperparameters. Neon is one of those frameworks that takes their data loading utilities, very seriously.</p><p>In tensorflow, you have TFRecords as the standard data format, assume you are working with a huge image dataset such as ImageNet, first you have to load the images and convert them into intended data type (e.g. float32), then stuff them in a protocol buffer called Example which contains features that describe your data. Then, we could serialize the protobuff to a string in order to write it into a TFRecord file. Usually your TFRecord files are going to get few times bigger than your actual dataset. You could read TFRecord files with TFRecordReader() object and form them into the intended shape to use as inputs for your model. The functions you do on tfrecords starting from reading to reshaping, all become a part of your computational graph, so the entire workflow will only be executed when your initialize the training. Although this solution is efficient, this pipeline is somewhat complex to build at first. When it comes to Keras, Keras as always targets for the simplicity, that’s why keras model.fit() takes numpy arrays as X &amp; y in a particular format. If your data is too big to fit into memory, you will have to use model.fit_generator(). Other than this Keras also has two more functionalities for data loading. An user can load TFRecord files into Keras training workflow using input tensors, this allows Keras to add the process of reading data into the computational graph, similar to what Tensorflow is doing. The other method is using keras.estimator.model_to_estimator() function on your Keras model, converting it into Tensorflow’s estimator format, allows you to stick to typical Tensorflow training and input pipelines after that. Other than these, Keras doesn’t have any specific data loading mechanisms.</p><blockquote>Neither Tensorflow nor Keras has any custom data loading utilities that cater specific needs such as loading a large scale image, video or audio dataset, I was surprised to see that Nervana team has a dedicated library named <a href="http://aeon.nervanasys.com/">Aeon</a> to deal with large datasets from different modalities, including image, video, and audio, that may be too large to load directly into memory. The output provided by Aeon can be used right in Neon’s training pipeline.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n2b4mqx0t7fPCSgV" /><figcaption>Aeon’s workflow</figcaption></figure><p>If you have worked with deep learning projects involving video and audio, you should know the hassle of preprocessing your data into the training data format, your DL framework needs. When converting your dataset into the intended format, you will have to take care of different file types within the dataset, you will also have to think of the memory constraints of when loading data into memory, if the framework doesn’t handle that even after converting your dataset into the format, framework needs. Therefore, having off the shelf functionalities as in Aeon for common <a href="https://en.wikipedia.org/wiki/Extract,_transform,_load">ETL</a> purposes of your DL project, makes your life so much easier.</p><p>Other than using Aeon’s data loader, you could use the below classes to load data,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*0TkCZYkBkRRoXcuQ" /><figcaption>Data loaders in Neon</figcaption></figure><p>The ArrayIterator class provides numpy array loading functionality similar to that of Keras, the only difference is, in Neon we have to use the ArrayIterator object in the model.fit() function, while in Keras model.fit() we directly use numpy arrays for X and y. I think it is worth leaving a small note on the way you should form your numpy arrays for ArrayIterator, comparing to that of Keras. I’ll be using the data formation of a CNN classifier in this example.</p><pre># for Keras:</pre><pre># X.shape = (batch_size, height, width, n_channels)<br># y.shape = (batch_size, n_classes)</pre><pre>model.fit(X, y, …)</pre><pre># for Neon:</pre><pre># X.shape = (batch_size, height * width * n_channels)<br># y.shape = (batch_size, 1)<br># X should be flattened in the form of CHW (channel, height, width)<br># use categorical values in y instead of one hot<br># lshape is local shape, your X will be reshaped internally into this format<br># nclass is the number of classes for ArrayIterator to turn y internally into one hot</pre><pre>model.fit(ArrayIterator(X=X, y=y, nclass=n_classes, lshape=(n_channels, height, width)), …)</pre><p>For more code examples, refer to the <a href="https://github.com/NervanaSystems/neon/tree/master/examples">examples folder</a> in Neon repository.</p><h3>Conclusion</h3><blockquote>Neon drastically reduces the wastage of your time preprocessing a dataset because lots of popular datasets for computer vision and natural language processing are already integrated into the library itself. Neon also has implemented some of the benchmarking mechanisms such as BLEU into the library itself. Often times, You won’t need a custom thread-safe data loader and worry about efficiently loading your data into memory, Aeon will take care of it. Since Neon also provides a Keras-like layer initialization, Neon is an ideal candidate for quick and easy prototyping, you will be able to realize a working prototype of your model faster and easier than in Keras.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FN2JaONOG63aMM%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Feasy-cartoons-adventure-time-N2JaONOG63aMM&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FN2JaONOG63aMM%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="247" frameborder="0" scrolling="no"><a href="https://medium.com/media/57040c00998d28fee439058f75e07266/href">https://medium.com/media/57040c00998d28fee439058f75e07266/href</a></iframe><p>Well deep learning was never easy when it comes to waiting for ages for a result while training your network 😜</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e65cab08040" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My GSoC journey so far]]></title>
            <link>https://thejanw.medium.com/how-i-started-my-gsoc-journey-5d6c10dc73b1?source=rss-c686b7c9879f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d6c10dc73b1</guid>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[proxy-server]]></category>
            <dc:creator><![CDATA[Thejan Wijesinghe]]></dc:creator>
            <pubDate>Fri, 18 Aug 2017 07:26:13 GMT</pubDate>
            <atom:updated>2017-08-19T08:33:39.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*j846OORJgfO1w-zR98qWEw.png" /></figure><p>I heard about Google Summer of Code back in 2016. I knew it was a great program to start with open source. But I didn’t apply in 2016. I was afraid that I won’t be able to manage all the university work and GSoC. In this program, you don’t get selected just for your proposal, prior to the submission of proposal you need to contribute to the organization or at least show your interest to the code base.</p><h3>How it all started?</h3><p>It was back in February, 2017, I was looking for a project/organization to apply. I was going through the ideas list of Apache in jira, first idea was from Apache Tika library. The project was about Supporting Image-to-Text (Image Captioning) in Tika for Image MIME Types. I know many of you know what image captions are, but this intro is for the people with no idea. Image captions are a small piece of text, usually of one line, added to the metadata of images to provide a brief summary of the scenery in the image. It helps text based Information Retrieval(IR) systems to “understand” the scenery in images. It is a very useful feature, yet a challenging and interesting problem in the domain of computer vision. Believe me, I instantly fell in love with the project idea ❤.</p><p>I needed to make a contribution to the code base before proposal submission. I subscribed to Tika-dev mailing list but I wasn’t sure where should I start, so I sent a mail to Thamme Gowda(one of my mentors), asking guidance to start with. He provided me with few starting points including few open issues, creating a new OCR parser and a research problem to explore on text recognition, performed by deep convolutional neural networks.</p><h3>An intro to ASF, Apache Tika &amp; my mentors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0P_AfraugEqmu75qWbe7Q.png" /></figure><p>I wanted to contribute to an Apache project due to number of reasons. More than half of the Internet and countless mission-critical applications worldwide are powered by Apache products. Apache Software Foundation (ASF) is one of the most influential Open Source organizations in the world. Therefore, in my opinion being a contributor to an Apache project is an honor.</p><p>The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). All of these file types can be parsed through a single interface, making Tika useful for search engine indexing, content analysis, translation, and much more.</p><p>Two of my mentors are Chris Mattmann &amp; Thamme Gowda. Chris Mattmann is a Principal Data Scientist at NASA Jet Propulsion Laboratory(JPL). He has many other roles too. Thamme Gowda also worked as a Data Scientist intern at NASA JPL. Believe me, both of them are super cool 😃.</p><h3>The competition</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*pX0Ht9wiqONXUDkPnrtI8g.jpeg" /></figure><p>20+ people showed an interest to my project. Among them, there were past contributors to Tika too. See the jira issue, <a href="https://issues.apache.org/jira/browse/TIKA-2262?filter=12339687">https://issues.apache.org/jira/browse/TIKA-2262?filter=12339687</a></p><p>Mentors must have received around 20 proposals. Most of the students who showed an interest also needed to make a contribution prior to the proposal submission and some did. I wasn’t sure whether I’d get selected because this situation was kind of an exception. Often times, only 4–5 or lesser number of people develop an interest for the same project.</p><p>Did I have a plan B? No. I didn’t have enough time to come up with a plan B. I was already busy working with those challenges my mentor provided. I was lucky, my proposal got selected out of that many proposals 😲.</p><h3>My first unmerged ☹ PR to Tika</h3><p>In Tika, for extracting text from images, we use a C++ library called Tesseract. Users are required to install Tesseract to use Tika’s OCR parser which is named as “TesseractOCRParser”. TesseractOCRParser calls tesseract from command line. Therefore, it performs multiple I/Os, create temporary resources on its way to OCR a document. Intention of my new parser “Tess4jOCRParser” was to use the Tess4J API instead of the runtime.exec way to executing tesseract out of process. Tess4J is a Java wrapper for Tesseract.</p><p>However, after some performance improvements, I could make the Tess4JOCRParser running faster than the TesseractOCRParser. But Tess4j library had some issues. One major issue was Tess4J coming with a bundle of Windows dlls, with those dlls embedded into Tika-app/Tika-server, we’d be nearly doubling the size of Tika-app/Tika-server.</p><p>Although the committers were against merging my PR, they appreciated my efforts as it helped to evaluate and understand pros and cons with JNI based OCR libs. They also very strongly supported adding Tess4JOCRParser as a standalone parser in my own GitHub site or on another third-party site 😊.</p><h3>From the closed PR to a new idea 😊</h3><p>Although my first pull request didn’t get merged, it helped me understand a major problem with bringing ML/DL capabilities to Tika. We could expect more and more big model files (new deep learning OCR models, image/video/audio recognition, captioning etc. etc.), when we try to provide these capabilities to Tika. Those models are also important. But, In the long run, we will end up having either too many REST services (thus making the system unstable) or native dependencies (making the system tied to platforms) or the model files (thus making the system too fat).</p><p>One solution to this problem was making those models, optional extensions, and not including in core distribution.</p><p>We currently have an object recognition parser and a Video labeling parser using the existing object recognition parser. Both are implemented as separate REST services. Those parsers don’t give us the headache of embedding deep learning models in our core distribution because they are implemented as dockerized web applications. Whoever needs to utilize those services need to build/run the containers in their system. Yes, I know then there is the overhead of setting up an external service. But it is just running a single command in the terminal and the server will be online in user’s system.</p><p>This gave me the idea of coming up with a scalable architecture to deal with deep learning models in Tika. It is an approach based on a fusion of docker &amp; a reverse proxy server. In my proposal, I included an architecture similar to the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jSMqwLXBa5-B7xtHOm6Ww.png" /></figure><p>But in the implementation phase, I had to make some architectural changes. I will talk more about this in the next posts.</p><h3>My current progress</h3><p>In fact by the time I’m writing this post, I’ve given Tika, image captioning capabilities, see <a href="https://github.com/apache/tika/pull/189">https://github.com/apache/tika/pull/189</a> . I could support almost all image formats for the Object Recognition Parser and Image Captioning Parser. My PRs are merged to Tika master branch, now. I’m working on a bunch of jira issues related to standardizing these REST parsers.</p><p>I also implemented a tool called Docker Service Manager in <a href="https://github.com/ThejanW/Docker-Service-Manager">https://github.com/ThejanW/Docker-Service-Manager</a>. It has a simple web interface to manage &amp; monitor containerized web applications. I made it to unify the REST services in Tika. With this tool, you can run/stop containerized web services, load balance them, pull multiple images from dockerhub at the same time and see their pulling progress in real time. I’m having some issues related to the reverse proxy server right now. The reverse proxy server, I was using, does not support VIRTUAL_PATH although it supports VIRTUAL_HOST . Therefore I can’t proxy into the url paths in the server back ends. I found a possible alternative to this. Let’s see how it goes. Once, I’m done, I’ll make another post explaining how it works.</p><p>If you are interested in seeing my progress, see this wiki page <a href="https://wiki.apache.org/tika/GSOC/GSoC2017">https://wiki.apache.org/tika/GSOC/GSoC2017</a> , where I post weekly reports.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d6c10dc73b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>