MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / prepare_gt_batch

Function prepare_gt_batch

train_rgb2material.py:143–150  ·  view source on GitHub ↗
(batch, hyperparams, do_augmentation=False)

Source from the content-addressed store, hash-verified

141
142
143def prepare_gt_batch(batch, hyperparams, do_augmentation=False):
144 gt_dict = {}
145
146
147 gt_dict["dinov2_latents"]=batch["latents"]["dinov2"]["final_latent"].cuda()
148 gt_dict["material"]=batch["material"].cuda()
149
150 return gt_dict
151
152#
153

Callers 1

trainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected