<?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 vikram gupta on Medium]]></title>
        <description><![CDATA[Stories by vikram gupta on Medium]]></description>
        <link>https://medium.com/@vikram-gupta?source=rss-4a4d0b76a5b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by vikram gupta on Medium</title>
            <link>https://medium.com/@vikram-gupta?source=rss-4a4d0b76a5b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:06:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vikram-gupta/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[Fixing py-faster-rcnn for cuDNN5]]></title>
            <link>https://vikram-gupta.medium.com/fixing-py-faster-rcnn-for-cudnn5-a7993d3ff3a1?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7993d3ff3a1</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[caffe]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Fri, 23 Feb 2018 08:03:09 GMT</pubDate>
            <atom:updated>2018-02-23T08:20:07.379Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all, a big thanks to Ross Girshick for sharing <a href="https://github.com/rbgirshick/py-faster-rcnn">this amazing implementation</a> for the benefit of the mere-mortals like me :) It is one of the most clearly written, well structured and nicely commented code that I have come across.</p><p>However, at times, you do get stuck into in getting the demo up and running due to minor compatibility issues. This gets immensely frustrating at time because you came here to do awesome object detection and not bug detection. <em>Although, bug is also an object :P</em></p><p>In this article, I wanted to document the issues faced by me and their resolution. The main issue was that I was using cuDNN version 5 which seems to be the case with lot of people.</p><p><strong>Cut the Trap and Just give me the </strong><a href="https://github.com/vgupta-ai/py-faster-rcnn"><strong>code</strong></a><strong>. :D</strong></p><p>Folks who want to skip the details can directly clone <a href="https://github.com/vgupta-ai/py-faster-rcnn">this</a> fork.</p><p>I have made some changes in the main code as well as the caffe code. I have only tested this code for demo for now. Let me know if you face issues while retraining.</p><p><strong>System Specifications</strong></p><p>Ubuntu Version: 14.04</p><p>CUDA Version: 8.0, V8.0.61</p><p>CUDNN Version: 5</p><p><strong>Error</strong></p><p>After cloning the repo, when I try to install caffe by running following command,</p><p><em>make -j8 &amp;&amp; make pycaffe</em></p><p>I run into lot of issues like:</p><p><em>/include/caffe/util/cudnn.hpp: In function ‘void caffe::cudnn::createPoolingDesc(cudnnPoolingStruct**, caffe::PoolingParameter_PoolMethod, cudnnPoolingMode_t*, int, int, int, int, int, int)’:<br>./include/caffe/util/cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor(cudnnPoolingDescriptor_t, cudnnPoolingMode_t, cudnnNanPropagation_t, int, int, int, int, int, int)’<br> pad_h, pad_w, stride_h, stride_w));<br> ^</em></p><p><strong>Diagnosis</strong></p><p>After some searching, I found the issue is due to the incompatibility with cuDNN version 5.</p><p>The best way to get hold of the issue was to downgrade to version 4 but I wanted to have some fun :)</p><p>So, I kept fixing one issue after the other and got the demo running atleast.</p><p><strong>Resolution</strong></p><p>The first step is to pull and merge the latest caffe code from the <a href="https://github.com/BVLC/caffe">caffe repository</a> in the caffe-fast-rcnn module. There are few minor conflicts. I have taken all the latest code changes and purged the older ones.</p><p>I also needed to make small changes here and there. Feel free to review the commit history and suggest improvements.</p><p>The caffe submodule compiles nicely after these changes.</p><p><strong>Code</strong></p><p>The updated code is located <a href="https://github.com/vgupta-ai/caffe-fast-rcnn">here</a>. Do not forget to switch to the “faster-rcnn” branch.</p><p>The next step was to try if the demo runs with this updated caffe version.</p><p>I ran the following command,</p><p><em>./tools/demo.py</em></p><p>and got <em>“Attribute Error”.</em></p><p>This issue had been discussed <a href="https://github.com/rbgirshick/py-faster-rcnn/issues/249">here</a>. I needed to make one more small change in the <em>“python_layer.hpp” </em>and then I was good to go!</p><p>The demo ran perfectly :)</p><p>You can find this updated code <a href="https://github.com/vgupta-ai/py-faster-rcnn">here.</a></p><p>I am yet to test if retraining also works fine but I think we will do it one step at a time :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7993d3ff3a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Humans are not suffering due to bondage but due to their freedom.]]></title>
            <link>https://vikram-gupta.medium.com/humans-are-not-suffering-due-to-bondage-but-due-to-their-freedom-2d0549cddb09?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d0549cddb09</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sun, 03 Dec 2017 08:39:09 GMT</pubDate>
            <atom:updated>2017-12-03T08:39:09.086Z</atom:updated>
            <content:encoded><![CDATA[<p>Humans are not suffering due to bondage but due to their freedom.</p><p>Suffering from bondage is bad but okay as you can strive to be free but suffering from freedom is tragic! Where do you go from here ?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d0549cddb09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mind is like fire. It’s a good slave but a bad master.]]></title>
            <link>https://vikram-gupta.medium.com/mind-is-like-fire-its-a-good-slave-but-a-bad-master-44521334ad90?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/44521334ad90</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sun, 19 Nov 2017 12:01:06 GMT</pubDate>
            <atom:updated>2017-11-19T12:01:06.511Z</atom:updated>
            <content:encoded><![CDATA[<p>Mind is like fire. It’s a good slave but a bad master.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44521334ad90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The day you would realise that nothing matters will be the day everything will really start…]]></title>
            <link>https://vikram-gupta.medium.com/the-day-you-would-realise-that-nothing-matters-will-be-the-day-everything-will-really-start-532c00d70126?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/532c00d70126</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Wed, 01 Nov 2017 11:25:16 GMT</pubDate>
            <atom:updated>2017-11-01T11:25:16.654Z</atom:updated>
            <content:encoded><![CDATA[<p>The day you would realise that nothing matters will be the day everything will <em>really</em> start mattering !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=532c00d70126" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do not hate anyone.]]></title>
            <link>https://vikram-gupta.medium.com/do-not-hate-anyone-97a6f579bea1?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/97a6f579bea1</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sun, 15 Oct 2017 03:54:11 GMT</pubDate>
            <atom:updated>2017-10-27T02:40:26.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Do not hate anyone.</p><p>The baggage of hate is unworthy of your time !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97a6f579bea1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most of the people you will ever meet in life will be good.]]></title>
            <link>https://vikram-gupta.medium.com/most-of-the-people-you-will-ever-meet-in-life-will-be-good-f3ff25c9fa55?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3ff25c9fa55</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sat, 14 Oct 2017 01:31:25 GMT</pubDate>
            <atom:updated>2017-10-14T01:31:25.831Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the people you will ever meet in life will be good. They will be imperfect (just like you!) but will be good.</p><p>So, do not live a life full of doubt, suspicion, fear or revenge!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3ff25c9fa55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The world does not owe you anything.]]></title>
            <link>https://vikram-gupta.medium.com/the-world-does-not-owe-you-anything-1b7b00f2c7af?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b7b00f2c7af</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sat, 14 Oct 2017 01:24:07 GMT</pubDate>
            <atom:updated>2017-10-14T01:24:07.988Z</atom:updated>
            <content:encoded><![CDATA[<p>The world does not owe you anything.</p><p>Be satisfied with what you have and make the most out of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b7b00f2c7af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Life is not fair. Shit happens and will happen.]]></title>
            <link>https://vikram-gupta.medium.com/life-is-not-fair-shit-happens-and-will-happen-3517c3b4d467?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3517c3b4d467</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sat, 14 Oct 2017 01:22:18 GMT</pubDate>
            <atom:updated>2017-10-14T01:22:18.969Z</atom:updated>
            <content:encoded><![CDATA[<p>Life is not fair. Shit happens and will happen.</p><p>Accept it and keep moving !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3517c3b4d467" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Words can not capture existence but silence can – Sri Sri Ravi Shankar]]></title>
            <link>https://vikram-gupta.medium.com/words-can-not-capture-existence-but-silence-can-sri-sri-ravi-shankar-81bf6ff826ca?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/81bf6ff826ca</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sun, 08 Oct 2017 11:47:12 GMT</pubDate>
            <atom:updated>2017-10-08T11:47:12.296Z</atom:updated>
            <content:encoded><![CDATA[<p>Words can not capture existence but silence can – Sri Sri Ravi Shankar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81bf6ff826ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Losing weight is very simple.]]></title>
            <link>https://vikram-gupta.medium.com/losing-weight-is-very-simple-26f83e1e5c73?source=rss-4a4d0b76a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/26f83e1e5c73</guid>
            <dc:creator><![CDATA[vikram gupta]]></dc:creator>
            <pubDate>Sun, 08 Oct 2017 06:25:52 GMT</pubDate>
            <atom:updated>2017-10-08T06:25:52.762Z</atom:updated>
            <content:encoded><![CDATA[<p>Losing weight is very simple.</p><p><strong>Calories Burnt – Calories Intake &gt; Zero</strong></p><p>However, most people forget the second part :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26f83e1e5c73" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>