TencentARC / PhotoMaker

PhotoMaker
https://photo-maker.github.io/
Other
8.63k stars 675 forks source link

A question about `prompt_text_only` #123

Closed louis4work closed 4 months ago

louis4work commented 4 months ago

Hi, thanks for your excellent work!

I have a question about the code for getting prompt_text_only: https://github.com/TencentARC/PhotoMaker/blob/3d5312add5bada9bf8756c857a3ea7413592e59a/photomaker/pipeline.py#L356-L360

I'm quite curious about why not just replace the trigger word with null character like:

prompt_text_only = prompt.replace("img", "")

Looking forward to hearing from you soon!

Paper99 commented 4 months ago

See this commit(https://github.com/TencentARC/PhotoMaker/issues/63) for more details

louis4work commented 4 months ago

See this commit(#63) for more details

Thanks!