stable-diffusion
stable-diffusion copied to clipboard
Fixes in ddpm.py and main.py
- first move
self.logvartoself.device, and then index usingt(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)
- remove extraneous argument
outputsfromon_train_epoch_endinmain.pythe current version of the code gives the following error:
TypeError: on_train_epoch_end() missing 1 required positional argument: 'outputs'