mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-21 15:15:43 +08:00
Make rich console global (#1916)
This commit is contained in:
1 parent
02f449b661
commit
4242a3c982
49 files changed
+44
-150
No files matched your search
@@ -28,7 +28,6 @@ from typing import Dict, List, Literal, Optional, Tuple, Type, Union
|
||||
|
||||
import torch
|
||||
from rich import box, style
|
||||
from rich.console import Console
|
||||
from rich.panel import Panel
|
||||
from rich.table import Table
|
||||
from torch.cuda.amp.grad_scaler import GradScaler
|
||||
@@ -48,11 +47,10 @@ from nerfstudio.utils.decorators import (
|
||||
check_viewer_enabled,
|
||||
)
|
||||
from nerfstudio.utils.misc import step_check
|
||||
from nerfstudio.utils.rich_utils import CONSOLE
|
||||
from nerfstudio.utils.writer import EventName, TimeWriter
|
||||
from nerfstudio.viewer.server.viewer_state import ViewerState
|
||||
|
||||
CONSOLE = Console(width=120)
|
||||
|
||||
TRAIN_INTERATION_OUTPUT = Tuple[ # pylint: disable=invalid-name
|
||||
torch.Tensor, Dict[str, torch.Tensor], Dict[str, torch.Tensor]
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user