stable-diffusion
stable-diffusion copied to clipboard
Fixes in ddpm.py and main.py
- first move
self.logvar
toself.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
outputs
fromon_train_epoch_end
inmain.py
the current version of the code gives the following error:
TypeError: on_train_epoch_end() missing 1 required positional argument: 'outputs'