Open apolinario opened 1 year ago
Hi,
Thank you for your interest in this work! The approach you mentioned makes sense. However, I would try setting the target prompt also as the source prompt for real-image editing. Let me know if this does not result in the desired results!
Regards, Authors
Hi! Thank you for getting back to me. Here are my experiments:
Source Image:
Source prompt generated by BLIP:
a painting of a cat sitting on top of a blue ball
Target prompts:
a painting of a dog sitting on top of a blue ball
a painting of a capybara sitting on top of a blue ball
cat
as the negative prompt
So indeed, strategy 1 that you suggested seem to work best! Thanks
Hi everyone! Amazing work, congratulations for the paper and thanks for open sourcing the code!
From what I understood and could test, the
src/edit_real.py
script perform an edit without the need of a user-inputted prompt. Basically it will input the BLIP-generated prompt in thesrc/inversion.py
step and will include the same prompt both as the regular and the negative prompts, and the actual editing direction comes from theconstruct_direction
function which contains the examplecat2dog
directionSo one way to use the code would be to use the
make_edit_direction.py
code with sentences about the two concepts I would like to translate one to the other (say fromhorse
torabbit
). Is that alright?However, if instead, I do want to use a prompt, what is the best way?
From the paper:
So from what I understand, this is how to edit with a prompt (without a custom edit direction calculated with multiple sentences):
edit_dir
EditingPipeline
, I enter the target prompt as the regular prompt, and the source prompt as the negative promptIs that the best/correct way to do it?