0

Referring to https://github.com/divamgupta/stable-diffusion-tensorflow and the author's colab notebook for tiling generation, is the tiling generation is also applicable to the Keras CV API for stable diffusion?

I have been playing around with Stable Diffusion using the Keras CV API and I wish to try generate the tiles as the author have demonstrated in his colab notebook. I understood from the referred link that the key is done by using a Circular Padding class. So I tried adding the Circular Padding function as shown below. However it seems that it did not work out on Keras CV API.

stable_diffusion = keras_cv.models.StableDiffusion()
......
stable_diffusion.diffusion_model.PaddedConv2D = PaddedConv2DCirc
stable_diffusion.diffusion_model.compile(jit_compile=True)

what should I do?

unsuccessful tiling:

enter image description here

James Z
  • 12,209
  • 10
  • 24
  • 44
Artico
  • 11
  • 2

0 Answers0