Skip to content

Commit

Permalink
deploy: 5240ff5
Browse files Browse the repository at this point in the history
  • Loading branch information
liruilong940607 committed Sep 17, 2024
1 parent 2160f22 commit a33ad20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified main/.doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion main/_modules/gsplat/rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ <h1>Source code for gsplat.rendering</h1><div class="highlight"><pre>
<span class="n">render_depth_expected</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">depth_ratio</span><span class="p">)</span> <span class="o">+</span> <span class="p">(</span><span class="n">depth_ratio</span><span class="p">)</span> <span class="o">*</span> <span class="n">render_depth_median</span>
<span class="p">)</span>

<span class="n">normals_surf</span> <span class="o">=</span> <span class="n">depth_to_normal</span><span class="p">(</span><span class="n">render_depth</span><span class="p">,</span> <span class="n">viewmats</span><span class="p">,</span> <span class="n">Ks</span><span class="p">)</span>
<span class="n">normals_surf</span> <span class="o">=</span> <span class="n">depth_to_normal</span><span class="p">(</span><span class="n">render_depth</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="n">Ks</span><span class="p">)</span>
<span class="n">normals_surf</span> <span class="o">=</span> <span class="n">normals_surf</span> <span class="o">*</span> <span class="p">(</span><span class="n">render_alphas</span><span class="p">)</span><span class="o">.</span><span class="n">detach</span><span class="p">()</span>

<span class="n">render_colors</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">cat</span><span class="p">([</span><span class="n">render_colors</span><span class="p">,</span> <span class="n">render_depth</span><span class="p">],</span> <span class="n">dim</span><span class="o">=-</span><span class="mi">1</span><span class="p">)</span>
Expand Down

0 comments on commit a33ad20

Please sign in to comment.