Use ruff as linter and formatter (#2765)

* Switch from black to ruff format

* Sort dependencies with ruff check

* Run ruff format
This commit is contained in:
Matthew Hoffman authored and GitHub committed 2024-01-15 13:43:14 -08:00
1 parent 69ed6d4093
commit f0aadf9de8
83 files changed
+208 -429

No files matched your search

+7 -9
View File
@@ -16,24 +16,22 @@
Depth dataset.
"""
from typing import Dict
import json
from pathlib import Path
from typing import Dict, Union
import numpy as np
import torch
from PIL import Image
from rich.progress import track
from nerfstudio.data.dataparsers.base_dataparser import DataparserOutputs
from nerfstudio.model_components import losses
from nerfstudio.data.datasets.base_dataset import InputDataset
from nerfstudio.data.utils.data_utils import get_depth_image_from_path
from nerfstudio.model_components import losses
from nerfstudio.utils.misc import torch_compile
from nerfstudio.utils.rich_utils import CONSOLE
from typing import Union
from PIL import Image
import torch
from rich.progress import track
from pathlib import Path
import json
class DepthDataset(InputDataset):
"""Dataset that returns images and depths. If no depths are found, then we generate them with Zoe Depth.