mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
brainstorming trainer code but broken
This commit is contained in:
1 parent
a9c0d5b97f
commit
a7167f890e
9 files changed
+166
-31
No files matched your search
@@ -0,0 +1,31 @@
|
||||
from abc import abstractmethod
|
||||
import torch
|
||||
|
||||
|
||||
class Dataset(torch.utils.data.Dataset):
|
||||
"""_summary_
|
||||
|
||||
Args:
|
||||
torch (_type_): _description_
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
data_directory: str,
|
||||
) -> None:
|
||||
super().__init__()
|
||||
pass
|
||||
|
||||
def __len__(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_image(self, idx):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_pose(self, idx):
|
||||
pass
|
||||
|
||||
def __getitem__(self, idx):
|
||||
raise NotImplementedError
|
||||
Reference in new issue
Block a user