sd-webui-lora_metadata_viewer is an Extension for the AUTOMATIC1111 web UI. Metadata from a LoRA file can be shown in a textbox.
At the moment I am using the AUTOMATIC1111 web UI [1] together with the Extension TrainTrain [3] for the LoRA modelling. The Extension currently under development should be compatible with the current AUTOMATIC1111 version. It should work with the LoRA models developed with AUTOMATIC1111 and TrainTrain as well as with LoRA models from other sources. The file type of the LoRA model must be in .safetensors
format.
The existing tools don't have the functionality I need for my work. So I wrote myself a suitable extension.
Simple to use tool, which simply shows the metadata in JSON format.
A .safetensors
files consist of a header and a binary part with the tensors. In the header there may be most of the time metadata. One tag of these metadata specifies the output name. If the filename is not changed the output name is equal to the filename.
One can select a LoRA file from a dropdown menu. Sorting is possible in alphabetical forward and backward direction. The selected filename without extension is shown in a textbox. In parallel the JSON data is shown in textbox underneath.
Figure 1: Opened panel of extension
Go to the tab Extensions
. Then go to the tab Install from URL
.
The installation link is
https://github.com/zentrocdot/sd-webui-lora_metadata_viewer
No problems known yet.
The Extension was devolped and tested on a machine with a Debian based Linux distribution istalled using the web UI AUTOMATIC111 with following specification:
- API: v1.10.0
- Python: 3.10.14
- torch: 2.1.2+cu121
- xformers: 0.0.23.post1
- gradio: 3.41.2
AUTOMATIC1111 uses Gradio to programme the web user interface. The Gradio version used is extremely buggy and outdated. Currently my local installed version is 5.0.1, AUTOMATIC1111 is using version 3.41.2. Following some forum posts the outdated Gradio version is given priority over an adaptation or update. This does not really motivates to programme extensions.
Even in the Python Virtual Environment, which AUTOMATIC1111 is using, the subsequent installation of Python modules is not unproblematic. There is often a mismatch in versions and dependencies. It must be clarified on a case-by-case basis how problematic the corresponding warning or error messages are. So far I have been able to solve every problem that has arisen.
I am still looking for a good documentation on how to integrate custom Extensions into AUTOMATIC1111. So far I have to resort to analysing other extensions and also having a look at the code of AUTOMATIC1111. This is a very unsatisfactory approach.
Improvement of this documentation. Extending of the metadata display to Checkpoints. I figured out, that I need a update button, when a LoRA was changed by another Extension.
[1] https://github.com/AUTOMATIC1111/stable-diffusion-webui
[2] https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Extensions
[3] https://github.com/hako-mikan/sd-webui-traintrain
There are various ways to support my work. One option is to purchase some of my extraordinary NFTs 😃. Some of my great collections can be found here:
- https://opensea.io/collection/fantastic-mushroom-collection
- https://opensea.io/collection/cats-with-hats-collection-1
- https://opensea.io/collection/devil-woman-collection
- https://opensea.io/collection/cup-of-ice-no-1
I loved the time when you could get also a hamburger 🍔 for one Euro!
If you like what I present here, or if it helps you, or if it is useful, you are welcome to donate a small contribution or a cup of coffee. Or as you might say: Every TRON counts! Many thanks in advance! 😃
TQamF8Q3z63sVFWiXgn2pzpWyhkQJhRtW7 (TRON) DMh7EXf7XbibFFsqaAetdQQ77Zb5TVCXiX (DOGE) 12JsKesep3yuDpmrcXCxXu7EQJkRaAvsc5 (BITCOIN) 0x31042e2F3AE241093e0387b41C6910B11d94f7ec (Ethereum)