stable-diffusion-webui-aesthetic-image-scorer icon indicating copy to clipboard operation
stable-diffusion-webui-aesthetic-image-scorer copied to clipboard

Not working with automatic1111 webui

Open Centurion-Rome opened this issue 1 year ago • 10 comments

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

Centurion-Rome avatar Oct 31 '22 09:10 Centurion-Rome

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

tsngo avatar Nov 01 '22 04:11 tsngo

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.

Jobias avatar Nov 01 '22 15:11 Jobias

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

tsngo avatar Nov 01 '22 20:11 tsngo

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 avatar Nov 02 '22 13:11 Centurion-Rome

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 avatar Nov 02 '22 14:11 Centurion-Rome

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

Centurion-Rome avatar Nov 03 '22 10:11 Centurion-Rome

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

tusharbhutt avatar Nov 04 '22 00:11 tusharbhutt

@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.

tsngo avatar Nov 04 '22 04:11 tsngo

@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?

tusharbhutt avatar Nov 04 '22 16:11 tusharbhutt

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... ;)

Centurion-Rome avatar Nov 06 '22 07:11 Centurion-Rome