mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Merge pull request #14330 from AUTOMATIC1111/fix-extras-caption-BLIP
fix extras caption BLIP
This commit is contained in:
commit
3d9a0d9e4b
@ -25,6 +25,6 @@ class ScriptPostprocessingCeption(scripts_postprocessing.ScriptPostprocessing):
|
|||||||
captions.append(deepbooru.model.tag(pp.image))
|
captions.append(deepbooru.model.tag(pp.image))
|
||||||
|
|
||||||
if "BLIP" in option:
|
if "BLIP" in option:
|
||||||
captions.append(shared.interrogator.generate_caption(pp.image))
|
captions.append(shared.interrogator.interrogate(pp.image.convert("RGB")))
|
||||||
|
|
||||||
pp.caption = ", ".join([x for x in captions if x])
|
pp.caption = ", ".join([x for x in captions if x])
|
||||||
|
Loading…
Reference in New Issue
Block a user