Skip to content

Extremely slow editing of image using Instruct pix2pix in Diffusers #7349

Answered by tolgacangoz
alexd725 asked this question in Q&A
Discussion options

You must be logged in to vote

You can compile the UNet like this:

pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)

Except for the first inference, this can help. Also, see the documentation.

Replies: 8 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alexd725
Comment options

You must be logged in to vote
1 reply
@tolgacangoz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@alexd725
Comment options

@asomoza
Comment options

@alexd725
Comment options

@asomoza
Comment options

@alexd725
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alexd725
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants