instruct-pix2pix icon indicating copy to clipboard operation
instruct-pix2pix copied to clipboard

Add Diffusers Example

Open patrickvonplaten opened this issue 2 years ago • 4 comments

Quick example of how to use the model with Diffusers. It should be faster than the original repo as it uses a faster scheduler (Euler) and optimized fp16.

patrickvonplaten avatar Jan 21 '23 12:01 patrickvonplaten

Taking a look.

holynski avatar Jan 21 '23 19:01 holynski

Hey, thanks for adding this.

We had a couple requests to add different alternative approaches, so we did a consolidation pass on this and #24 to add a section for other ways of using the model. Can you PTAL at HEAD and let me know if it looks okay?

holynski avatar Jan 23 '23 01:01 holynski

Sure, I adapted the PR :-) Happy to adapt some things if you like!

patrickvonplaten avatar Jan 23 '23 06:01 patrickvonplaten

Hey, I think most of the content of your PR should now be covered in the updated Readme section. Can you take another look?

If there's something in specific that seems to be missing or you'd like to modify, let me know, I'm happy to pull it in.

holynski avatar Jan 23 '23 16:01 holynski

Cool, yeah this section is nice: https://github.com/timothybrooks/instruct-pix2pix#instructpix2pix-in--diffusers

patrickvonplaten avatar Jan 24 '23 08:01 patrickvonplaten