Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add some documentation to use it as a python library. #208

Open
eltoob opened this issue Jan 26, 2023 · 5 comments
Open

Can we add some documentation to use it as a python library. #208

eltoob opened this issue Jan 26, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation planned

Comments

@eltoob
Copy link

eltoob commented Jan 26, 2023

First off, thanks a lot @brycedrennan!
Trying to play around imaginAIry directly from python... would be really great if we could beef up documentation to use the method in python over bash,
Thanks!

@brycedrennan
Copy link
Owner

brycedrennan commented Jan 26, 2023

I welcome any pull requests 😄 I agree the docs are sparse.

@brycedrennan brycedrennan added the documentation Improvements or additions to documentation label Jan 26, 2023
@brycedrennan
Copy link
Owner

Is there something in particular you wanted better documentation for?

@bjano
Copy link

bjano commented Jan 27, 2023

Is it possible to use the InstructPix2Pix integration from the python API? I couldn't figure that one out.

(great project btw!)

@brycedrennan
Copy link
Owner

@bjano the key thing is to set the model to "edit" and init-image-strength to zero
example:

ImaginePrompt(
prompt_text,
init_image=img,
prompt_strength=strength,
model="edit",
steps=steps,
width=width,
height=height,
**kwargs, # noqa
)

@brycedrennan
Copy link
Owner

Todo: for all images add directions for both the command line and python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation planned
Projects
None yet
Development

No branches or pull requests

3 participants