mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
code runs again, working on integrating test set and optimizers
This commit is contained in:
1 parent
8ed28b7a37
commit
7e5a5bf524
7 files changed
+60
-21
No files matched your search
@@ -9,7 +9,7 @@ import torch
|
||||
from PIL import Image
|
||||
from torch.utils.data import default_collate
|
||||
|
||||
from mattport.nerf.dataset.utils import DotDict
|
||||
from mattport.utils.misc import DotDict
|
||||
|
||||
|
||||
class ImageDataset(torch.utils.data.Dataset):
|
||||
|
||||
@@ -13,18 +13,6 @@ import torch
|
||||
from mattport.utils.io import get_absolute_path, load_from_json
|
||||
|
||||
|
||||
class DotDict(dict):
|
||||
"""
|
||||
dot.notation access to dictionary attributes
|
||||
"""
|
||||
|
||||
def __getattr__(self, attr):
|
||||
return self[attr]
|
||||
|
||||
__setattr__ = dict.__setitem__
|
||||
__delattr__ = dict.__delitem__
|
||||
|
||||
|
||||
@dataclass
|
||||
class DatasetInputs:
|
||||
"""Dataset inputs for the image dataset and the ray generator."""
|
||||
|
||||
Reference in new issue
Block a user