picobyte / stable-diffusion-webui-wd14-tagger

Labeling extension for Automatic1111's Web UI
540 stars 64 forks source link

Interrogator.input["cumulative"] will return True or False, But QData.clear need int param. #48

Closed gamert closed 10 months ago

gamert commented 11 months ago

Also The Code Logic may be wrong for "Combine interrogations" 。While checked ,it will Clear ;While unchecked, it will Combine. Pls Check.

def interrogate_image(self, image: Image) -> None: sha = IOData.get_bytes_hash(image.tobytes()) QData.clear(Interrogator.input["cumulative"])

RoelKluin commented 10 months ago

This may have to do with an old presets.json. Try removing it and write it again by saving it.

gamert commented 10 months ago

presets.json not found. Where is it? Thks

RoelKluin commented 10 months ago

it is not part of the repository, but if you save in the gui this stores a json file. I'll have to check at home but I thought it was called either defaults/presets.json in the extension root dir or presets/defaults.json and it may only be there after you did save in the gui.

picobyte commented 10 months ago

It was the latter. But actually you were right it is reversed, one sec. Should be fixed, right? thanks.

gamert commented 10 months ago

yeal, Thank you all:)