Skip to content

Commit

Permalink
deploy: 0a200cd
Browse files Browse the repository at this point in the history
  • Loading branch information
liruilong940607 committed Sep 30, 2024
1 parent 9ecd60e commit 846bbeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified main/.doctrees/environment.pickle
Binary file not shown.
4 changes: 3 additions & 1 deletion main/_modules/gsplat/rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,9 @@ <h1>Source code for gsplat.rendering</h1><div class="highlight"><pre>
<span class="s2">&quot;gradient_2dgs&quot;</span><span class="p">:</span> <span class="n">densify</span><span class="p">,</span> <span class="c1"># This holds the gradient used for densification for 2dgs</span>
<span class="p">}</span>

<span class="n">render_normals</span> <span class="o">=</span> <span class="n">render_normals</span> <span class="o">@</span> <span class="n">torch</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">inv</span><span class="p">(</span><span class="n">viewmats</span><span class="p">)[</span><span class="mi">0</span><span class="p">,</span> <span class="p">:</span><span class="mi">3</span><span class="p">,</span> <span class="p">:</span><span class="mi">3</span><span class="p">]</span><span class="o">.</span><span class="n">T</span>
<span class="n">render_normals</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">einsum</span><span class="p">(</span>
<span class="s2">&quot;...ij,...hwj-&gt;...hwi&quot;</span><span class="p">,</span> <span class="n">torch</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">inv</span><span class="p">(</span><span class="n">viewmats</span><span class="p">)[</span><span class="o">...</span><span class="p">,</span> <span class="p">:</span><span class="mi">3</span><span class="p">,</span> <span class="p">:</span><span class="mi">3</span><span class="p">],</span> <span class="n">render_normals</span>
<span class="p">)</span>

<span class="k">return</span> <span class="p">(</span>
<span class="n">render_colors</span><span class="p">,</span>
Expand Down

0 comments on commit 846bbeb

Please sign in to comment.