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

MIT License
140 stars 12 forks source link

Aesthetic Image Scorer: Unable to load Windows tagging script from tools directory #14

Open visjble opened 1 year ago

visjble commented 1 year ago

I did copy the add_tags.py in the right folder to no avail

UBU 20.10

rpillala commented 1 year ago

My tools directory already contains add_tags.py and I'm getting the same error at launch, in Windows 10

rodrix3855 commented 1 year ago

Same issue

rodrix3855 commented 1 year ago

Can you specify which is the "right folder"? add_tags.py is on tools by default when you git clone

visjble commented 1 year ago

The default folder

rodrix3855 commented 1 year ago

Then the file is already there when doing pull. Can you specify the full path?

jasoncharles commented 1 year ago

I have the same error running on windows. The full path for the file add_tags.py on my computer is:-

C:\stable-diffusion-webui\extensions\stable-diffusion-webui-aesthetic-image-scorer\tools\add_tags.py

Rodrix33333 commented 1 year ago

I confirm I have the same path. Not working

ChinatsuHS commented 1 year ago

works only when you run as administrator

-open powershell as administrator -cd to your webui folder

will install pywin32 just fine and load the extension without errors

tsngo commented 1 year ago

I personally don't run as administrator and it works fine. This is a weird one. This error seems to indicate it's unable to load tools\add_tags.py for some reason. Although it does this right after installing pywin32, shouldn't have anything to do with that library. I changed this error logging so that it should output additional info. Hopefully someone can try it and see if it provides more insight into the cause.

schoenid commented 10 months ago

I've got this message on my linux machine:

ERROR:root:Aesthetic Image Scorer: Unable to load Windows tagging script from tools directory
Traceback (most recent call last):
  File "/home/sd/Tech/Linux/stable-diffusion-webui/extensions/stable-diffusion-webui-aesthetic-image-scorer/scripts/image_scorer.py", line 26, in <module>
    from tools.add_tags import tag_files
  File "/home/sd/Tech/Linux/stable-diffusion-webui/extensions/stable-diffusion-webui-aesthetic-image-scorer/tools/add_tags.py", line 6, in <module>
    import pythoncom
ModuleNotFoundError: No module named 'pythoncom'

This is because "pythoncom" is part of pywin32.

If I try to install it, it gives me an error:

$ pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32

After short toughts, I've got the idea, that this is for Windows and it is not compatible with Linux.

My system:

Operating System: Ubuntu Studio 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 6.2.0-1014-lowlatency (64-bit) Graphics Platform: X11 Processors: 16 × 13th Gen Intel® Core™ i7-13700K Memory: 62.5 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2