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

Question at inference stage #7

Open
Kris-Lcq opened this issue Jul 8, 2024 · 1 comment
Open

Question at inference stage #7

Kris-Lcq opened this issue Jul 8, 2024 · 1 comment

Comments

@Kris-Lcq
Copy link

Kris-Lcq commented Jul 8, 2024

Hi, authors. You guys work are so amazing. Thank you for your efforts for safe AIGC.
I have one simple question at inference stage. The white model used in this repository is "/runwayml/stable-diffusion-inpainting",if i only use the text-prompt attack to generate prompt, how can i generate an image with just the prompt? Because,the official hugging face repository of say "stable-diffusion-inpainting" needs three inputs, prompt、image and masked image whereas i only have the optimaized prompt.

@yangyijune
Copy link
Collaborator

Thanks for your question. The text encoders used in both SD-inpainting and SD are the same. To conduct prompt attacks, you can change the repository path to runwayml/stable-diffusion-v1-5 and use the corresponding pipeline for image generation without a mask and the original image as inputs.

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

2 participants