mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 02:49:57 +08:00
32 lines
509 B
Python
32 lines
509 B
Python
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
|