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

Function build_args_batch_extractor

sam3d_objects/data/utils.py:128–132  ·  view source on GitHub ↗
(args_mapping: ArgsType)

Source from the content-addressed store, hash-verified

126
127
128def build_args_batch_extractor(args_mapping: ArgsType):
129 def extract_fn(batch):
130 return tuple(get_child(batch, *as_keys(path)) for path in args_mapping)
131
132 return extract_fn
133
134
135def build_kwargs_batch_extractor(kwargs_mapping: KwargsType):

Callers 1

build_batch_extractorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected