MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / ModelParams

Class ModelParams

arguments/__init__.py:47–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 return group
46
47class ModelParams(ParamGroup):
48 def __init__(self, parser, sentinel=False):
49 self.sh_degree = 3
50 self._source_path = ""
51 self._model_path = ""
52 self._images = "images"
53 self._resolution = -1
54 self._white_background = False
55 self.data_device = "cuda"
56 self.eval = False
57 self.n_views = 0
58 self.init_scale_from_view_depth = False
59 super().__init__(parser, "Loading Parameters", sentinel)
60
61 def extract(self, args):
62 g = super().extract(args)
63 g.source_path = os.path.abspath(g.source_path)
64 return g
65
66class PipelineParams(ParamGroup):
67 def __init__(self, parser):

Callers 2

train.pyFile · 0.90
render.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected