CompVis / stable-diffusion

A latent text-to-image diffusion model
https://ommer-lab.com/research/latent-diffusion-models/
Other
66.51k stars 9.97k forks source link

Fixes in ddpm.py and main.py #851

Open silky1708 opened 1 month ago

silky1708 commented 1 month ago
  1. first move self.logvar to self.device, and then index using t (line 1030, ddpm.py) the current verison of the code gives the following error:

    RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
  2. remove extraneous argument outputs from on_train_epoch_end in main.py the current version of the code gives the following error:

TypeError: on_train_epoch_end() missing 1 required positional argument: 'outputs'