mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-24 13:59:00 +08:00
fix extras caption BLIP
This commit is contained in:
parent
654ca97fe3
commit
f604c29191
@ -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.interrogate(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…
x
Reference in New Issue
Block a user