fix extras caption BLIP

#14328
This commit is contained in:
w-e-w 2023-12-16 22:14:39 +09:00
parent 7428ce52ab
commit 98c5fa9201

View File

@ -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])