tionPipeline

pipe_1 = IFInpaintingPipeline(**pipe_1.components)
pipe_2 = IFInpaintingSuperResolutionPipeline(**pipe_2.components)  Optimizing for speed The simplest optimization to run IF faster is to move all model components to the GPU.   Copied pipe = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-XL-v1.0", variant="fp16", torch_dtype=torch.float16)
pipe.to("cuda") You can also run the diffusion process for a shorter number of timesteps.