tsngo / stable-diffusion-webui-aesthetic-image-scorer

MIT License
142 stars 13 forks source link

Not working with automatic1111 webui #6

Open Centurion-Rome opened 2 years ago

Centurion-Rome commented 2 years ago

Did all what is needed to use it with automatic1111 web ui: cloned to /extensions/aesthetic-image-scorer and startet ui, I can not see aesthetic-image-scorer

tsngo commented 2 years ago

When the UI reloads, do you see Installing pywin32? Any errors? if not, the check the settings page for a section that has options for this extension

Jobias commented 2 years ago

I'm running automatic1111 on Ubuntu 22.10, and tried launching it with and without the --listen argument but in both cases i get the "Aesthetic Image Scorer: Unable to load Windows tagging script from tools directory" error, even when the folder tools has the .py file and a folder called pycache, The dropdown menu is showing on the text2img tab, but whenever i run it, the error "Aesthetic Image Scorer: Unable to load tagging script" appears.

tsngo commented 2 years ago

@Jobias image tagging script is not going to work in Ubuntu. I should probably remove that error if not Windows.

Centurion-Rome commented 2 years ago

When the UI reloads, do you see Installing pywin32? Any errors? if not, the check the settings page for a section that has options for this extension

Yes I saw installing pywin32 but no errors were shown. I can see it in config area. Maybe I am using it wrong? What should I set and where can I see this results (score values of generated images) ? How to add it automatically to generated file name?

Centurion-Rome commented 2 years ago

Tried to use it as filename param: 2022-11-02 15_05_02-Stable Diffusion 2022-11-02 15_05_17-Stable Diffusion

But it doesn't work:

2022-11-02 15_07_31-txt2img-images

Centurion-Rome commented 2 years ago

Getting some errors: Aesthetic Image Scorer: Unable to write tag or category for C:\outputs\txt2img-images\00001-[aesthetic_score]-852903336.jpg

tusharbhutt commented 2 years ago

Getting some errors: Aesthetic Image Scorer: Unable to write tag or category for C:\outputs\txt2img-images\00001-[aesthetic_score]-852903336.jpg

Same here, and that's with all the windows setting off as well as the saving into PNG chunk

tsngo commented 2 years ago

@tusharbhutt Are you running latest version of webui? You should not get Unable to write tag or category on the latest version. @JenarPJ I did not implement filename token [aesthetic_score]. I don't think it's possible to do this with the way the extensions system works currently.

tusharbhutt commented 2 years ago

@tusharbhutt Are you running latest version of webui? You should not get Unable to write tag or category on the latest version. @JenarPJ I did not implement filename token [aesthetic_score]. I don't think it's possible to do this with the way the extensions system works currently.

Hi, yes I am on the latest AUTO webui, just updated it again this morning. Images are saved as PNG. Here are the settings I am using and the error I am getting:

https://imgur.com/a/R5xMP6P

Would long filenames be an issue?

Centurion-Rome commented 2 years ago

I did not implement filename token [aesthetic_score]. It is other possibility to get this as prefix to filenames? -> ie rename file after on_imagesaved() This would be such a great feature to sort files descending to file name... ;)