forked from mrq/DL-Art-School
qcodes
This commit is contained in:
parent
38a00f29c0
commit
aca9024d9b
|
@ -237,7 +237,7 @@ class TransformerDiffusionWithQuantizer(nn.Module):
|
||||||
|
|
||||||
def get_debug_values(self, step, __):
|
def get_debug_values(self, step, __):
|
||||||
if self.quantizer.total_codes > 0:
|
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}
|
'gumbel_temperature': self.quantizer.quantizer.temperature}
|
||||||
else:
|
else:
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user