MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

utils/data_utils.py:12–14  ·  view source on GitHub ↗
(self, viewpoint_stack, white_background)

Source from the content-addressed store, hash-verified

10class CameraDataset(Dataset):
11
12 def __init__(self, viewpoint_stack, white_background):
13 self.viewpoint_stack = viewpoint_stack
14 self.bg = np.array([1,1,1]) if white_background else np.array([0, 0, 0])
15
16 def __getitem__(self, index):
17 viewpoint_cam = self.viewpoint_stack[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected