Remove defaults from docstrings. (#480)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-09-19 10:04:25 -07:00
1 parent f796a9f468
commit 8b388a3e5c
25 files changed
+106 -112

No files matched your search

+3 -3
View File
@@ -36,9 +36,9 @@ class CacheImageDataloader(DataLoader):
Args:
dataset: Dataset to sample from.
num_samples_to_collate: How many images to sample rays for each batch. Defaults to all images.
num_times_to_repeat_images: How often to collate new images. Defaults to every iteration.
device: Device to perform computation. Defaults to "cpu".
num_samples_to_collate: How many images to sample rays for each batch. -1 for all images.
num_times_to_repeat_images: How often to collate new images.
device: Device to perform computation.
"""
def __init__(
@@ -42,7 +42,7 @@ class InstantNGPDataParserConfig(DataParserConfig):
scale_factor: float = 1.0
"""How much to scale the camera origins by."""
scene_scale: float = 0.33
"""How much to scale the scene. Defaults to 0.33"""
"""How much to scale the scene."""
@dataclass
@@ -38,13 +38,13 @@ class MipNerf360DataParserConfig(DataParserConfig):
data_directory: Path = Path("data/mipnerf_360/garden")
"""directory specifying location of data"""
downscale_factor: int = 1
"""How much to downscale images. Defaults to 1."""
"""How much to downscale images."""
val_skip: int = 8
"""1/val_skip images to use for validation. Defaults to 8."""
"""1/val_skip images to use for validation."""
auto_scale: bool = True
"""Scale based on pose bounds. Defaults to True."""
"""Scale based on pose bounds."""
aabb_scale: float = 4
"""Scene scale, Defaults to 1.0."""
"""Scene scale."""
@dataclass
@@ -42,15 +42,13 @@ class NerfactoryDataParserConfig(DataParserConfig):
scale_factor: float = 1.0
"""How much to scale the camera origins by."""
downscale_factor: int = 1
"""How much to downscale images. Defaults to 1."""
"""How much to downscale images."""
scene_scale: float = 4.0
"""How much to scale the scene. Defaults to 4.0"""
"""How much to scale the scene."""
orientation_method: Literal["pca", "up"] = "up"
"""The method to use for orientation. Either "pca" or "up"."""
"""The method to use for orientation."""
train_split_percentage: float = 0.9
"""
The percent of images to use for training.
The remaining images are for eval. Defaults to 0.9.
"""The percent of images to use for training. The remaining images are for eval.
"""
@@ -40,14 +40,14 @@ class Record3DDataParserConfig(DataParserConfig):
data_directory: Path = Path("data/record3d/garden")
"""Location of data"""
val_skip: int = 8
"""1/val_skip images to use for validation. Defaults to 8."""
"""1/val_skip images to use for validation."""
aabb_scale: float = 4.0
"""Scene scale, Defaults to 4.0."""
"""Scene scale."""
orientation_method: Literal["pca", "up"] = "up"
"""The method to use for orientation. Either "pca" or "up"."""
"""The method to use for orientation"""
max_dataset_size: int = 150
"""Max number of images to train on. If the dataset has
more, images will be sampled approximately evenly. Defaults to 150."""
more, images will be sampled approximately evenly."""
@dataclass