corbin-hayden13 / SD-Lora-Tagger

A Search Engine For All Your Local Extra Networks (in AUTOMATIC1111/stable-diffusion-webui and vladmandic/automatic)
MIT License
11 stars 2 forks source link

Network metadata not loading when extension is active #20

Closed Cruxial0 closed 5 months ago

Cruxial0 commented 5 months ago

Whenever the extension is active, clicking the 'Edit Metadata' button on networks results in the following error

reading info for L_15_AhriArcana: FileNotFoundError
Traceback (most recent call last):
  File "C:\Users\user\stable-ui\modules\ui_extra_networks_user_metadata.py", line 105, in get_metadata_table
    stats = os.stat(filename)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'F:\\AI\\Models\\LoRAs\\Characters\\L_15_AhriArcana'

It happens for all networks except for texual inversions.

Steps to reproduce:

  1. Enable the extension
  2. Click the 'Edit Metadata' button on any on the aforementioned networks

Distribution: Automatic1111 WebUI (v1.7.0-7-gfe3a918c)

corbin-hayden13 commented 5 months ago

Most likely an issue with the re-registration process, I'll take a look at it and try to reproduce

corbin-hayden13 commented 5 months ago

I get the error but editing metadata still works... this is odd behavior, does editing metadata still work for you?

Also getting the following error:

creating item for extra network: TypeError
Traceback (most recent call last):
  File "C:\stable-diffusion-webui\modules\ui_extra_networks.py", line 76, in get_single_card
    item = page.create_item(name, enable_filter=False)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ExtraNetworksPage.create_item() got an unexpected keyword argument 'enable_filter'
Cruxial0 commented 5 months ago

It only partially works. It's likely falling back to the bare minimums. This is how it looks when it fails to load:

Contra how it looks when it successfully loads:

corbin-hayden13 commented 5 months ago

Yeah I found the issue, made a patch, lemme see if it works

corbin-hayden13 commented 5 months ago

Yup, I found the issue and fixed it, lemme create a branch and pull request