MCPcopy Create free account
hub / github.com/facebookresearch/sam-3d-objects / build_kwargs_batch_extractor

Function build_kwargs_batch_extractor

sam3d_objects/data/utils.py:135–142  ·  view source on GitHub ↗
(kwargs_mapping: KwargsType)

Source from the content-addressed store, hash-verified

133
134
135def build_kwargs_batch_extractor(kwargs_mapping: KwargsType):
136 def extract_fn(batch):
137 return {
138 name: get_child(batch, *as_keys(path))
139 for name, path in kwargs_mapping.items()
140 }
141
142 return extract_fn
143
144
145empty_mapping = object()

Callers 1

build_batch_extractorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected