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

Grounded image inpaint - not in the demo #18

Open
stared opened this issue Mar 23, 2023 · 5 comments
Open

Grounded image inpaint - not in the demo #18

stared opened this issue Mar 23, 2023 · 5 comments

Comments

@stared
Copy link
Contributor

stared commented Mar 23, 2023

On the GLIGEN website, there is an example of inpainting that inserts images rather than generating them from a text prompt.

Screenshot 2023-03-23 at 00 57 38

However, I am unable to find this option in the demo. Is it available somehow?

@haotian-liu
Copy link
Contributor

It not available in demo yet (due to it potentially can have multiple objects), while you can try it with our inference script: https://github.com/gligen/GLIGEN/blob/master/gligen_inference.py#L367

@stared
Copy link
Contributor Author

stared commented Mar 28, 2023

@haotian-liu Thank you - I figured it out, and it works - see #22 . Would you be interested in adding it?

I had trouble relating it to the demo code (in gradio), though. The code seems to be different from the one in https://github.com/gligen/GLIGEN/blob/master/gligen_inference.py. Does it work the same way (just duplication written in a different way) or (as it seems) are there some other improvements, e.g. related to xformers?

@PrajwalCogniac
Copy link

Hey @haotian-liu @stared
Even I want to try the same application ! How did you manage to do it ? As there is no checkpoint file available ?
All there is a .bin file from HUB how did you use that ?
Any help to run the inference in this regard will be helpful

@avivbur
Copy link

avivbur commented Jul 2, 2023

@PrajwalCogniac You can refer to the Download GLIGEN Models table in the README.md file - I believe the model you need is Inpainting | Box+Text+Image

@CREED404
Copy link

@avivbur does I still need to download the checkpoint file if I am using the Gligen demo app? doesn't it download all files automatically?

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

No branches or pull requests

5 participants