Closed shawnrushefsky closed 9 months ago
@shawnrushefsky
Try using the more detailed compilation functions. For example, there are two functions called compile_uent
and compile_vae
in the same Python module as compile
. You can call these two functions at the unet
and vae
of the pipeline for once.
The error occurs because the compiled parts of your pipeline cannot be recompiled. So you could explicitly compile them as you wish.
And usually, there is no need to share vae
and text_encoder
between the base model and the refiner, as they are relatively small models compared with unet
. Doing so won't save a lot of memory.
Thanks!
Trying to use this with sdxl base + refiner as documented here: https://huggingface.co/docs/diffusers/using-diffusers/sdxl#base--refiner-model. I am sharing the
text_encoder_2
andvae
between the base and refiner as documented. Compiling the base model works great. When I try to compile the refiner in theStableDiffusionXLImg2ImgPipeline
I am getting the following error:The stack trace indicates it's failing at the text encoder:
software versions:
Can you add an example to the readme for how to do this?