<?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 vishnu pradeep on Medium]]></title>
        <description><![CDATA[Stories by vishnu pradeep on Medium]]></description>
        <link>https://medium.com/@vp1865?source=rss-f1f022f3db45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3WrLa7Bo5X2B97QSsuIsng.jpeg</url>
            <title>Stories by vishnu pradeep on Medium</title>
            <link>https://medium.com/@vp1865?source=rss-f1f022f3db45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:55:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vp1865/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[Scaling GNNs with Graph Rewiring]]></title>
            <link>https://medium.com/@vp1865/scaling-gnns-with-graph-rewiring-9531be144add?source=rss-f1f022f3db45------2</link>
            <guid isPermaLink="false">https://medium.com/p/9531be144add</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[graph-neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[gnn]]></category>
            <category><![CDATA[graph]]></category>
            <dc:creator><![CDATA[vishnu pradeep]]></dc:creator>
            <pubDate>Sat, 12 Mar 2022 21:11:23 GMT</pubDate>
            <atom:updated>2022-03-13T19:47:37.180Z</atom:updated>
            <content:encoded><![CDATA[<p>An intuitive guide into rewiring Graph Neural Networks with Ricci Flows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wb6PJ0pqm_FTdn073agFzA.png" /></figure><blockquote><em>Prerequisites: General concepts of GNNs, Understanding of spectral graph theory. </em>This article is aimed at machine learning engineers<em>.</em></blockquote><p>In the most of classical deep learning; models showed an increase in performance with addition of more layers. In Graph neural networks however addition of more layers shows a substantial drop in performance compared to shallow models . Ideally ,we would need more layers to model complex relationships, long-range information. When we add more layers to a GNN each node now has access to information from other nodes that are farther away and might help model important long-range dependencies. But this doesn’t work as expected. This is due to over-squashing in GNNs. Lets define it formally.</p><blockquote>The distortion of information flowing from distant nodes as a factor limiting the efficiency of message passing for tasks relying on long-distance interactions; is referred to as ‘over-squashing’.</blockquote><p>Now let’s look at a formulation from our existing knowledge of GNNs (MP-GNNs) to understand the problem better. Let us consider the (<em>l</em> + 1)-<em>th</em> layer output of a generic MPNN as follows :</p><p><em>( following the message functions Ψ , update function Φ ; we have considered the augmented normalized adjacency matrix to propagate messages from each node to its neighbors, which simply leads to a degree normalization of the message functions ψ )</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8y93RSpAjl9VynerMAALLQ.png" /></figure><p><em>Ψ , Φ functions are </em><strong><em>Lipschitz bounded </em></strong>by<strong><em> α ,β</em></strong>:</p><p><strong>|∇φ| ≤ <em>α</em>;|∇ψ | ≤ <em>β </em></strong>at layer <em>l</em></p><p>consider a <strong>node<em> i</em></strong> and another <strong>node</strong> <strong><em>s</em></strong> ; <strong><em>r </em></strong>nodes away from it .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*wi8U2onbrx0JXes6h5GRlw.jpeg" /></figure><p>The over-squashing of information can then be understood in terms of one node representation of <strong>node</strong> <strong><em>i</em></strong> failing to be affected by some input feature of<strong> node <em>s</em></strong> at distance <strong><em>r</em></strong> from node <strong><em>i. </em></strong>To formulate this we use the <em>jacobian :</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*b2mrAhRwRBt0qW3Dfp8TIA.png" /></figure><p>Smaller values of the jacobian lead to poor information propagation. Since the gradients of <strong>Ψ , Φ</strong><em> </em>are bounded ; the value of jacobian is controlled by the value of <strong>Â</strong> (powers of Â). Which means; <em>it is the structure of the graph that determines the over-squashing behavior of the nodes</em>. We refer to those structural properties of the graph that lead to over-squashing as a <strong><em>bottleneck</em></strong>.</p><blockquote>Graph rewiring attempts to produce a new graph with a different edge structure that reduces the bottleneck and hence potentially alleviates the over-squashing of information.</blockquote><p><em>The over-squashing problem in graphs can be solved effectively; by the concept of Ricci curvature from Riemannian geometry and by utilizing the idea of reverse Ricci flows. Let’s understand this in detail :</em></p><p>Let us start by understanding the notion of <em>sectional curvature </em>from the diagram below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJkw2a9bsA9QkILe0oL3qw.jpeg" /></figure><p>Sectional curvature (<em>a curvature where the parallel displacement is restricted to a 2-dimensional facet</em>) helps you to understand the curvature of a Riemannian manifold restricted to a lower-dimensional space. When we average sectional curvature values over all directions w over the entire manifold we obtain <strong><em>Ricci curvature</em></strong><em> ie</em><strong><em>: </em></strong>Ricci curvature is the average of sectional curvature over all facets.</p><p><strong><em>Ricci curvature can be thought of as a curvature that quantitatively measures how space is curved</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYgXOZtDQ95-UvLmZuuPGA.jpeg" /></figure><blockquote>But how do you use these ideas with graphs? We need to define a discrete mapping of Ricci curvature to graphs.</blockquote><p>Consider an analog of the <strong><em>xy</em></strong> vector from the continuous case ( from figure 5) in graph domain. In the case of graphs <strong><em>xy</em></strong> is an edge.</p><p>For every edge <strong><em>xy</em></strong> ; consider the distance from x’s neighbors to <strong><em>y</em></strong>’s neighbors and compare it with the length of <strong><em>xy</em></strong> . To compare the neighbors of <strong><em>x</em></strong> and <strong><em>y</em></strong>; we consider distributions <strong><em>µ1</em></strong> and <strong><em>µ2</em></strong> on <strong><em>x</em></strong>’s and <strong><em>y</em></strong>’s neighbors respectively. We then use optimal transport distance to find the distance from <strong>x</strong>’s neighbors to <strong>y</strong>’s neighbors.</p><blockquote><strong><em>Lets make it simple</em></strong><em>; consider the distance between nodes x and y connected by edge xy ; now look at how much has the neighbors of x or y have either converged close to each other or have moved farther in comparison to the initial distance xy.</em></blockquote><p>Lets take an example graph to understand this : consider a graph with nodes x0,x1,x2,x3,x4 and y0,y1,y2,y3,y4 . There exist an edge x0 y0 (the curvature is found with respect to this edge). When we transport the neighborhood of x0 ie:{ x1,x2,x3,x4 }red to neighborhood of y0 ie:{ y1,y2,y3,y4 } blue. The total distance to transport neighborhood of x0 to neighborhood of y0 is 1; ie, we need to move each corresponding node by one unit. This is the same as the initial distance between x0 and yo (unit distance). Which means; the curvature value is zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kxn5rDVQMDlMcAUqj-WImw.jpeg" /></figure><p>In such a uniform case the curvature is zero. In the case of a tree shaped graph the neighborhood nodes diverge ; resulting in a negative curvature. There is also an exponential growth of volume in such graphs involving trees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*L_0jqK5NUSkCj8DcLmr15Q.jpeg" /></figure><p>In a discrete spherical geometry,the edges would meet to form a triangle corresponding to positive curvature. In a euclidean case, the edges would stay parallel to form 4-cycles and correspond to zero curvature. In the discrete hyperbolic geometry case, the mutual distance of the edge endpoints would grow corresponding to a tree-like geometry or negative curvature.</p><p>Now let us understand Ricci flows; we look at the notion of Ricci flow as a ccurvature-guided process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3CYUfXj7eIBVnKgWCtIv-g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*nwuJ0GoZtRw0MvGLVDfACg.jpeg" /></figure><blockquote>Under the Ricci flow, regions in the manifold of positive sectional curvature tend to shrink and regions of negative sectional curvature tend to expand and spread out ; the analogue holds good to graphs where edges of positive curvature tends to come closer and edges of negative curvature moves apart.</blockquote><blockquote><em>Over the years mathematicians and computer science researchers have proposed various approaches to defining Ricci curvature on graphs. The definition we started with used a notion of optimal transport based on Ollivier’s original formulation. For the sake of GNNs we are more interested in a different formulation of Ricci curvature. Our focus is to reach the formulation proposed by Graph Deeplearning OG Michael Bronstein’s team last year.</em></blockquote><p>Geometrically, Ricci curvature controls how fast the volume of an object grows. It also controls the volume of the overlap of two objects in terms of their radii and the distance between their centers. From Ollivier’s original formulation using optimal transport; lets consider two balls in Riemannian geometry , suppose they overlap heavily; then it is much easier to transport the mass from one ball to the other : ie the Wasserstein distance is lower . Analogously, in the graph case, when the two vertices share many triangles, then the transportation distance should be smaller, and the curvature therefore correspondingly larger . When we formulate a transport plan ,the existence of triangles including neighboring vertices would save a lot of transport costs. A possible explanation of using triangles as given in early papers is: on a graph, the analog of geodesics starting in different directions, but eventually approaching each other again, would be a triangle. Wasserstein distance can also be explained in terms of overlap of quadrilaterals, pentagons etc.</p><p>Since we have covered the earlier formulations let’s dive into the details of this recent work [1]. This work proposes a <em>balanced forman curvature</em> improving upon the existing formulations :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LXV_MrYyD8Kg5I2OB0JVvw.png" /></figure><p>Triangles can be related to positive curvature, four-cycle to correspond to zero curvature and the rest of the outgoing edges as related to a negative curvature ( as in a tree). This intuition was used to come up with this formulation as stated in the paper.</p><p>The edges that have a negative curvature are responsible for the over-squashing problem. These edges are analogous to bridges. For nodes in two parts of the network to interact the messages need to go through these bridge like edges. This can also be extended to the notion of cheeger constant. Cheeger constant of a graph is a numerical measure of whether or not a graph has bottleneck. Ideally we need large cheeger values ensuring that there are less number of bottlenecks and therefore low chances of failure of the network if a few nodes fail. A large cheeger value indicates lesser bottlenecks being present and a small cheeger value indicates more chances of bottlenecks.</p><h3>The graph rewiring mechanism:</h3><p>‎The paper proposes Stochastic Discrete Ricci Flow to rewire the graph. This follows the Ricci flow formulation from the paper ;analogous to continuous domain. Here edges are added by taking into consideration of the curvature values. Graph with edge that is added is compared with initial graph at every iteration . The edges are retained or removed based on curvature values . At each iteration this preprocessing step adds an edge to support the graph’s most negatively curved edge, and then removes the most positively curved edge.‎ The algorithm is given as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9XvWvvKLr1QudAwEtNqksA.png" /></figure><p>Simply using the Ricci flow metric comes with some notable advantages.</p><blockquote>While using spectral embeddings ; removal or addition of a node leads to chaotic behavior of the graph ; use of Ricci flow metric eliminates this problem . Using Ricci flow metric ; removal or addition of nodes is stable unlike spectral embeddings.</blockquote><blockquote>Ricci flow metric also does fairly well in reconstructing nodes if nodes are removed.</blockquote><p>Another popular mechanism to graph rewiring is using <em>Diffusion</em> (<strong>DIGL -Diffusion Improves Graph Learning</strong>), but this method suffers from a few disadvantages as compared to the curvature-based method we discussed above.</p><p>DIGL has a limited effect on bottleneck . It changes the graph topology significantly. It tends to connect nodes at small diffusion distance which may be from a different group. It works well for homophilic case ( where node features/labels are aligned with graph structure) and fails in the case of heterophilic nodes by injecting noise.</p><p>[1] UNDERSTANDING OVER-SQUASHING AND BOTTLENECKS ON GRAPHS VIA CURVATURE <a href="https://arxiv.org/pdf/2111.14522.pdf">2111.14522.pdf (arxiv.org)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9531be144add" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paper Review : Learning High Fidelity Depths of Dressed Humans by Watching Social Media Dance…]]></title>
            <link>https://medium.com/@vp1865/paper-review-learning-high-fidelity-depths-of-dressed-humans-by-watching-social-media-dance-ae1c8d922e5?source=rss-f1f022f3db45------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae1c8d922e5</guid>
            <category><![CDATA[reserach]]></category>
            <category><![CDATA[virtual-try-on]]></category>
            <category><![CDATA[depth-estimation]]></category>
            <category><![CDATA[graphics]]></category>
            <category><![CDATA[3d-reconstruction]]></category>
            <dc:creator><![CDATA[vishnu pradeep]]></dc:creator>
            <pubDate>Sat, 26 Feb 2022 06:24:52 GMT</pubDate>
            <atom:updated>2022-02-26T06:27:17.770Z</atom:updated>
            <content:encoded><![CDATA[<h3>Paper Review : Learning High Fidelity Depths of Dressed Humans by Watching Social Media Dance Videos</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*DzRYvhKUW0hQPkp3" /></figure><blockquote><em>Revisiting 2021 CVPR paper </em><a href="https://openaccess.thecvf.com/content/CVPR2021/papers/Jafarian_Learning_High_Fidelity_Depths_of_Dressed_Humans_by_Watching_Social_CVPR_2021_paper.pdf"><em>Learning High Fidelity Depths of Dressed Humans by Watching Social Media Dance Videos</em></a><em> ; </em><a href="https://www.linkedin.com/in/yasamin-jafarian-7b006a8b/"><em>Yasamin Jafarian</em></a><em> , Hyun Soo Park</em></blockquote><h3>Why is this paper important?</h3><p>Being able to capture the complex geometry of dressed humans has been increasingly important to enable virtual e-commerce experiences, video-based visual effects, and most application that involves VR — AR experiences. To capture the local geometry, e.g., wrinkle and fabric texture, photogrammetry based on massive camera infrastructure has been used. But the impracticality of these setups makes them far less promising for practical applications. Single view reconstruction based on scanned human models has been the go-to option for approaching the problem of understanding the 3D geometry of dressed humans. Nonetheless, the effectiveness of these methods has been limited in terms of the number of scanned human models, the diversity of poses, appearances; making them not the best candidate for learning-based methods.</p><p>Given these practical limitations; what if we make use of social media dance videos to reconstruct high fidelity 3D geometry of dressed humans. This CVPR 2021 paper proposes an ingenious method to do the same.</p><p>Link to paper: <a href="https://openaccess.thecvf.com/content/CVPR2021/papers/Jafarian_Learning_High_Fidelity_Depths_of_Dressed_Humans_by_Watching_Social_CVPR_2021_paper.pdf">Learning High Fidelity Depths of Dressed Humans by Watching Social Media Dance Videos (thecvf.com)</a></p><h3>Understanding the premise</h3><p>Existing methods for understanding the complex geometry of dressed humans ( in terms of depth predictions) shows two limitations :</p><ol><li>existing depth estimators are highly responsive to predict holistic scene geometry, but its expressibility is limited at encoding fine local geometry such as irregular and complex wrinkles, which constitute the dominant factor of realism.</li><li>It requires a large amount of 3D ground truth data. Unfortunately, such large ground truth data for humans that span diverse appearance, cloth styles, and poses do not exist.</li></ol><p>The social media dance videos in general depict a sequence of diverse poses of a single person. These videos do not come with ground truth 3D values. This eliminates the possibility of using existing fully supervised methods.</p><p>The researchers also pointed out two interesting observations at the beginning of the paper :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*OAGpypGRGzA4ESzI" /></figure><ul><li>1. When you consider the pixel intensity along any path on an image ( considering fabric in the case of dressed humans) it shows a direct first-order correlation with the surface normal values along the same path; whereas depth follows a second-order correlation. Consider the path from A to B in the dressed human image; the plots corresponding to image intensity, depth intensity, and surface normal intensity are shown to the right. The points of sudden change in values for image intensity values correspond to wrinkles in clothing. This is also captured by the surface normal intensity values.</li><li>2. The geometry of dressed humans is an inherent semi-rigid structure. For a human, the change in local geometry approximately remains constant up to some transformations. Thus the geometric consistency over different poses can be applied to learn from the real dance videos.</li></ul><p>The solution proposed is to design a self-supervised learning mechanism that can be used to directly learn the depth estimation from dance videos. The proposed method is end-to-end trainable, resulting in high fidelity depth estimation that predicts fine geometry faithful to the input image.</p><h3>Main Ideas</h3><h3>Self-supervised Human Depths from Videos</h3><p>Consider the image of a dressed human at two time instants<strong> <em>i , j</em></strong><em> </em>. For the<em> </em><strong><em>i</em></strong> th image we obtain depth estimations. On the<strong><em> i</em></strong> th depth map we consider individual parts ( eg arms, head, etc) and apply a transformation <strong><em>W </em></strong>( learnable ). This learnable transformation converts the depth map at time <strong>i</strong> to form the part based warped depths at instant<strong><em> j</em></strong> . These are then projected on to the foreground range by bilinear interpolation. The obtained warped depths supervise the depth estimation at time<strong><em> j</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*RvK8bfuWW81uIroM" /></figure><p>Consider a coordinate transform <strong><em>h(u) = x</em></strong> that maps a canonical human body surface coordinate <strong><em>u ∈ R2</em></strong> (UV surface coordinate) to the corresponding point <strong><em>x</em></strong> in an image. A key feature of the UV surface coordinate is that it is invariant to poses, clothes, and appearance.</p><p>For an image of a dressed human<strong><em> I</em></strong> and <strong><em>x ∈ R2</em></strong> is the <em>xy</em>-location in the image, <strong><em>z ∈ R+</em></strong> is the depth at the corresponding location; given by:</p><p><strong><em>z = g(x; I)</em></strong></p><p>Using the UV coordinates we predict the depth at each point; these depths are used to reconstruct a 3D point <strong><em>p ∈ R3</em></strong> in the space and is parameterized as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*wzmMyzWSV_NUsLwb" /></figure><p><strong><em>K</em></strong> which is a 3*3 matrix represent camera intrinsic parameter</p><p><strong><em>x̃</em></strong> represent homogeneous representation</p><p><strong><em>x</em></strong> is the pixel location in the image domain corresponding to<strong><em> u</em></strong> in the UV domain. The subscript <strong><em>i</em></strong> indicates the time instant.</p><p>Consider a dressed human image as a set of body parts; arms, head, etc. Take a set of points in the<strong><em> k th</em></strong> body part at the <strong><em>i th</em></strong> time instant . We apply a learnable transform <strong><em>W</em></strong> to transform it into the<strong><em> j th</em></strong> time instant :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*H6BZVNzjpj2j5OU4" /></figure><p>W is a 3D part-based warping function, and <strong><em>Uk </em></strong>is the set of UV coordinates associated with the <strong><em>k th </em></strong>body part. The body part is defined as a region of the body where its local geometry approximately undergoes a rigid transformation, e.g., lower arm.</p><p>W can be further decomposed as a combination of a rotation component <strong>R</strong> and a translation component <strong>t</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*LOLH7LIq6AuXqcLi" /></figure><p>We use the obtained warped depth projection to time j as a supervising component to learn the depth prediction. This is represented as minimizing the following squared loss (difference between the depth prediction at<em> </em><strong><em>j</em></strong><em> th</em> instant and the projected warped depth from previous time instant ):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*dWPveMV-E5ccbj3b" /></figure><p>where <strong><em>Vk</em></strong> is the subset of the UV coordinates that represent the overall transformation.</p><p>The same supervision is extended to all time instants of the video and all the available video files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*17bePdp46-ZzL8sR" /></figure><p>where <strong><em>Vl</em></strong> is the set of time instances within the <strong><em>l th</em></strong> video.</p><p>This allows us to utilize a large amount of real videos without the 3D ground truth via self-supervision, i.e., the estimated depth in one pose can be used to supervise the depth in the other pose.</p><h3>Joint Learning of Surface Normal and Depth</h3><p>Surface normal helps to understand the orientation of a surface . It can be denoted as the vector perpendicular to tangential plane at any point on a surface . If we have the 3D reconstructed point ; we can obtain the surface normal by taking the perpendicular to the tangential plant at that point .</p><p>We estimate the surface normals of an image I as :</p><p><strong><em>n = f( x ; I )</em></strong></p><p>where n is the unit surface normal vector represented in the camera coordinate system.</p><p>alternatively, we can also derive the surface normal from the corresponding 3D point <strong><em>p(x)</em></strong> given by :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*vDEkcN6JEjCdQa-P" /></figure><p><strong><em>nˆ </em></strong>denotes the surface normal estimate derived by the depth estimate.</p><p>To ensure geometric consistency between estimations of surface normals: the first one from the learnable function and another one derived from depth estimations; we minimize their geometric error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*JbqnwAaTTgp1mHEx" /></figure><p><strong><em>R(I)</em></strong> is the coordinate range of the image<strong><em> I</em></strong>, and <strong><em>D</em></strong> is the image dataset including the dance videos and scanned 3D models.</p><blockquote><em>The paper proposes to use the surface normal estimates to supervise the depths and the depth estimates to supervise the surface normals by enforcing their geometric consistency in the training phase. This end-to-end online pipeline enables learning the depths from the real videos without the ground truth depth.</em></blockquote><h3>Network Design</h3><p>In addition to the self-consistency-based learning process; we also make use of available 3D scanned models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/0*2UEZ-ta8r2DAv_6H" /></figure><p>where<em> </em><strong><em>D</em></strong><em>s</em> is the 3D scanned dataset with the ground truth depths <strong><em>Z</em></strong><em>(x)</em> and surface normals <strong><em>N</em></strong><em>(x)</em>.</p><p><strong><em>L</em></strong><em>z</em> and <strong><em>L</em></strong><em>n</em> are used to learn the depth and surface normal estimation from the scanned 3D ground truth.</p><p>To combine everything and learn the depth and surface normal estimators from real videos and 3D scanned models we minimize the following overall loss :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*LfrYDihQqmFNHRSL" /></figure><p><strong><em>λ</em></strong><em>n, </em><strong><em>λ</em></strong><em>s,</em> and <strong><em>λ</em></strong><em>w</em> are relative weights between losses.</p><p>The design of the network follows two variations to incorporate the cases where 3D scanned model data is available along with the videos and the case where only videos are available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*LwkOMPDbzq84cFus" /></figure><p>For the case where both 3D scanned model data and real videos are available; the network (called <strong>HDNet</strong> (Human Depth Neural Network)) is composed of two estimators: surface normal and depth estimators.</p><p>The surface normal estimator <strong><em>f(x; I)</em></strong> takes as input an RGB image and its foreground mask and outputs the surface normal estimates. The depth estimator, <strong><em>g(x; I)</em></strong>, in turn, takes as input a triplet of an RGB image, foreground mask, and UV coordinate, and outputs the depth estimates. The geometric consistency between the surface normal and depth is enforced by minimizing <strong><em>L</em></strong><em>s</em>. For the 3D scanned model data, both estimators are supervised by the ground truth surface normal and depth (<strong><em>L</em></strong><em>n</em> and <strong><em>L</em></strong><em>z</em>), respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*iYXH216pWvDUiNcp" /></figure><p>For the videos without 3D scanned models ; a Siamese network with HDNet where two triplets from two time instances within the same video are used for the depth estimates. The UV coordinates from both images are used to compute the special Euclidean transformation that is used to warp the depth from one image to the other image. At each time instant, we make five image pairs by randomly selecting time instances that have the UV coordinates of at least five common visible body parts while each contains more than 50 overlapping UV coordinates.</p><p>The backbone network used is the stacked hourglasses network ( proposed in <em>Stacked Hourglass Networks for Human Pose Estimation</em> Alejandro Newell, Kaiyu Yang, and Jia Deng ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*WLeWnpbEDsZzodjL" /></figure><p>The adjoining figure shows a single “hourglass” module. Multiple such modules are stacked to build the backbone.</p><h3>Implementation details :</h3><p>The image and its foreground mask are cropped from the input image and resized to 256×256, and <strong><em>h</em></strong> (mapping between UV and xy space) is approximated by the inverse of the UV map obtained by DensePose model. Adam optimizer was used to train the original model; with batch size: 10; learning rate: 0.001; λn: 1; λs: 0.5; and λw: 5.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae1c8d922e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>