MCPcopy Create free account
hub / github.com/microsoft/TRELLIS / get_instance

Method get_instance

trellis/datasets/components.py:85–89  ·  view source on GitHub ↗
(self, root, instance)

Source from the content-addressed store, hash-verified

83 return metadata, stats
84
85 def get_instance(self, root, instance):
86 pack = super().get_instance(root, instance)
87 text = np.random.choice(self.captions[instance])
88 pack['cond'] = text
89 return pack
90
91
92class ImageConditionedMixin:

Callers

nothing calls this directly

Calls 1

get_instanceMethod · 0.45

Tested by

no test coverage detected