This commit is contained in:
James Betker 2022-06-10 16:23:08 -06:00
parent 38a00f29c0
commit aca9024d9b

View File

@ -237,7 +237,7 @@ class TransformerDiffusionWithQuantizer(nn.Module):
def get_debug_values(self, step, __):
if self.quantizer.total_codes > 0:
return {'histogram_codes': self.quantizer.codes[:self.quantizer.total_codes],
return {'histogram_quant_codes': self.quantizer.codes[:self.quantizer.total_codes],
'gumbel_temperature': self.quantizer.quantizer.temperature}
else:
return {}