mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-25 10:29:51 +08:00
Mesh export (#809)
* start of mesh PR * point cloud export mvp * start of mesh PR * point cloud export mvp * Save out mesh. Poor quality atm * reorganized mesh algorithms and specified CLI * CLI reorg * tsdf algorithm in progress * debugging * tsdf functional but camera distortion params not in * playing with distortion params * TSDF works but texture looks bad * added trimesh * moved to exporter * removed files * saving progress * save texture image * seems to work w/o barycentric * barycentric start * gap between triangles * blocking out diagonal * new barcentric and scaling * meshing working. need to remove extra rows * fixed triangle packing * gitignore changes * removed package * fix Literal import * comments * update .mtl file * poisson mesh with model output normals & resolved some PR comments on git * starting docs. breaking up big function. todo: add xatlas * xatlas and nvdiffrast working * triangle_id * progress on expensive texture coordinates method * pytorch meshing works * removing nvdiffrast * remove trimesh * cleanup * few changes * pred normals by default and add minimum additions to viewer * fix cli in viewer * add xatlas as dependency * make point cloud more dense * reverted viewer changes * turn off normals by default * fix docs * finished todos on github * remove xatlas * xatlas * black Co-authored-by: Matt Tancik <tancik@berkeley.edu>
This commit is contained in:
1 parent
d9395f2576
commit
1052fccec2
15 files changed
+1526
-166
No files matched your search
@@ -15,9 +15,17 @@
|
||||
"""Additional rich ui components"""
|
||||
|
||||
from contextlib import nullcontext
|
||||
from typing import Optional
|
||||
|
||||
from rich.console import Console
|
||||
from rich.progress import ProgressColumn
|
||||
from rich.progress import (
|
||||
BarColumn,
|
||||
Progress,
|
||||
ProgressColumn,
|
||||
TaskProgressColumn,
|
||||
TextColumn,
|
||||
TimeRemainingColumn,
|
||||
)
|
||||
from rich.text import Text
|
||||
|
||||
CONSOLE = Console(width=120)
|
||||
@@ -49,3 +57,12 @@ def status(msg: str, spinner: str = "bouncingBall", verbose: bool = False):
|
||||
if verbose:
|
||||
return nullcontext()
|
||||
return CONSOLE.status(msg, spinner=spinner)
|
||||
|
||||
|
||||
def get_progress(description: str, suffix: Optional[str] = None):
|
||||
"""Helper function to return a rich Progress object."""
|
||||
progress_list = [TextColumn(description), BarColumn(), TaskProgressColumn(show_speed=True)]
|
||||
progress_list += [ItersPerSecColumn(suffix=suffix)] if suffix else []
|
||||
progress_list += [TimeRemainingColumn(elapsed_when_finished=True, compact=True)]
|
||||
progress = Progress(*progress_list)
|
||||
return progress
|
||||
Reference in new issue
Block a user