4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

Filter torchvision warnings (#954)

This commit is contained in:
Matthew Tancik 2022-11-12 18:23:24 -08:00 committed by GitHub
parent 5b0f1ffacb
commit b67f96fc56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@
from __future__ import annotations
import warnings
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
@ -32,6 +33,8 @@ from nerfstudio.configs.config_utils import to_immutable_dict
# model instances
from nerfstudio.utils import writer
warnings.filterwarnings("ignore", module="torchvision")
CONSOLE = Console(width=120)
# Pretty printing class