How to customize the StableDiffusionXLPAGInpaintPipeline? #9462
-
Hi, Can anyone can help with this? It shows it cannot find pag package. How can I do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @yiyixuxu , |
Beta Was this translation helpful? Give feedback.
-
Hi, the callbacks aren't inside the pag directory, when you customize a pipeline you have to make sure to match the dots with the correct subdirectories. So in this case: from ...callbacks import MultiPipelineCallbacks, PipelineCallback means that the callbacks are in the root of the project: which means you should import it like this if you have the pipeline outside of diffusers: from diffusers.callbacks import MultiPipelineCallbacks, PipelineCallback |
Beta Was this translation helpful? Give feedback.
both of those are correct and should work, if you can't import them there's something wrong with your installation or environment. The best way to resolve this is to create your environment again.