MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / LossType

Class LossType

src/diffusion/gaussian_diffusion.py:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89
90class LossType(enum.Enum):
91 MSE = enum.auto() # use raw MSE loss (and KL when learning variances)
92 RESCALED_MSE = (
93 enum.auto()
94 ) # use raw MSE loss (with RESCALED_KL when learning variances)
95 KL = enum.auto() # use the variational lower-bound
96 RESCALED_KL = enum.auto() # like KL, but rescale to estimate the full VLB
97
98 def is_vb(self):
99 return self == LossType.KL or self == LossType.RESCALED_KL
100
101
102class GaussianDiffusion:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected