arpitbansal297 / Cold-Diffusion-Models

Official implementation of Cold-Diffusion for different transformations in pytorch.

Home Page:https://arxiv.org/abs/2208.09392

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'GaussianDiffusion' object has no attribute 'module'

Amarkr1 opened this issue · comments

X_0s, X_ts = self.ema_model.module.all_sample(batch_size=batches, img=og_img, times=s_times) # change for DP

Modified this to:
X_0s, X_ts = self.ema_model.all_sample(batch_size=batches, img=og_img, times=s_times) # change for DP

seems to solve the error.

Yes, .module is there because of data parallel.