Make rich console global (#1916)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2023-05-12 14:20:40 -07:00
1 parent 02f449b661
commit 4242a3c982
49 files changed
+44 -150

No files matched your search

+1 -4
View File
@@ -25,7 +25,6 @@ import cv2
import numpy as np
import requests
import torch
from rich.console import Console
from rich.progress import track
# TODO(1480) use pycolmap instead of colmap_parsing_utils
@@ -38,11 +37,9 @@ from nerfstudio.data.utils.colmap_parsing_utils import (
)
from nerfstudio.process_data.process_data_utils import CameraModel
from nerfstudio.utils import colormaps
from nerfstudio.utils.rich_utils import status
from nerfstudio.utils.rich_utils import CONSOLE, status
from nerfstudio.utils.scripts import run_command
CONSOLE = Console(width=120)
def get_colmap_version(colmap_cmd: str, default_version=3.8) -> float:
"""Returns the version of COLMAP.