damn this sucks

This commit is contained in:
James Betker 2022-06-10 15:38:59 -06:00
parent 0316063e2d
commit 561a6b8ff7

View File

@ -59,7 +59,7 @@ class GaussianDiffusionInjector(Injector):
def extra_metrics(self):
if hasattr(self, 'schedule_sampler') and isinstance(self.schedule_sampler, LossSecondMomentResampler):
return {
'sampler_warmed_up': self.schedule_sampler._warmed_up()
'sampler_warmed_up': torch.tensor(self.schedule_sampler._warmed_up()).float()
}
return {}