divamgupta / stable-diffusion-tensorflow

Stable Diffusion in TensorFlow / Keras
Other
1.57k stars 227 forks source link

minor fix to add_noise method for mix precision policy #44

Closed costiash closed 1 year ago

costiash commented 1 year ago

Encountering into exception when running with mixed precision policy and passing 'init_image' argument into the generator, so added casting in add_noise method what made it work without any errors.

matpalm commented 1 year ago

+1. just did the same thing, in a different way!