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

31 integrate with blafkingsd civitai browser plus #32

Open corbin-hayden13 opened 5 months ago

corbin-hayden13 commented 5 months ago

Creates framework for querying tags from civitai to append to tag files.

corbin-hayden13 commented 5 months ago

Among getting tags from civitai, this pr implements a test file management interface a critically moves all constants to the “globals.py” file to avoid future circular imports and define a standard for where these globally used constants should be defined.

Cruxial0 commented 5 months ago

Caught another issue after requesting those changes.

Any file paths that include dots in the file name (e.g. sd_xl_offset_example-lora_1.0.safetensors) will result in your code not recognizing it as a file.

SD Lora Tagger: No such file F:\AI\Models\LoRAs\XL\L_XL_sd_xl_offset_example-lora_1.0.safetensors
SD Lora Tagger: No such file F:\AI\Models\LoRAs\XL\sd_xl_offset_example-lora_1.0.safetensors
corbin-hayden13 commented 5 months ago

Yeah, that due to the use of splitext(), i can make a quick function to trim the last period not the first

corbin-hayden13 commented 5 months ago

I'm still working on getting the row tags to match what's in the tag files because the tag files are having the filename + extension written to them as the initial tag while they should only have the file name (and no extension) but the rows only have the file name (no extension) so I need to investigate why this is occurring because wile there's a mismatch you cannot search by tag