MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / init_decoder

Method init_decoder

sat/sgm/modules/autoencoding/losses/lpips.py:27–30  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

25 self.perceptual_weight_on_inputs = perceptual_weight_on_inputs
26
27 def init_decoder(self, config):
28 self.decoder = instantiate_from_config(config)
29 if hasattr(self.decoder, "encoder"):
30 del self.decoder.encoder
31
32 def forward(self, latent_inputs, latent_predictions, image_inputs, split="train"):
33 log = dict()

Callers 1

__init__Method · 0.95

Calls 1

instantiate_from_configFunction · 0.50

Tested by

no test coverage detected