Single file pure HTML tool for viewing LoRA metadata that can be run locally on your web browser without the need of installation or internet connectivity.
To use, just extract the attached Zip and open the extracted HTML file with the web browser of your choice. Alternatively, you can use the version hosted on Github: https://xypher7.github.io/lora-metadata-viewer
Not thoroughly tested, but should work with most modern web browsers. To be honest I didn't really intend to share this so its kind of low effort and pretty basic. However, I decided to post it since others might find it useful too. I don't really plan to update this as it already does what I need, plus I want to keep it as simple and lightweight as possible. Though suggestions are always welcome.
Github repository URL: https://github.com/Xypher7/lora-metadata-viewer
Features:
Configurable metadata summary
CivitAI resource lookup. (Requires internet connection)
Configurable training tag summary
Edit or remove metadata in the Safetensors file
Doro :3
Description
1.4.0
Added metadata editor
Added human readable date formatting
Added dark mode toggle
1.4.1
Fixed json formatting bug when updating metadata that prevented the safetensors file from working correctly
1.4.2
Added .safetensors extension filter in file selection
FAQ
Comments (5)
I have multiple files with diff extensions alongside my loras - such as pngs and info txt's etc... Adding: fileInput.accept = '.safetensors'; to the html makes it much easier to filter them out.
Apart from that this is really great! Thank you!
Also it would be cool if you could work on a browser extension/tampermonkey script similar to this: https://github.com/magicFeirl/ExportCivitAIMetadata (although this one doesn't seem to work anymore and its just to download the metadata) - with a similar UI.
No problem, just applied the filter since I had to fix an issue anyway.
The extension does look pretty cool. It seems it was updated quite recently though, so it might have been fixed already. If not, I might give it a shot.
@Xypher It was broken for several months then updated a couple days ago - yes. I'm using an outdated version of chrome because I don't feel the need to always update it and potentially break my other extensions so maybe that is the reason it currently doesn't work for me.
But it was a cool extension when it did work - it quickly downloads the metadata in a .txt file so you can check for things you might want such as if the lora has specific tags or was trained on a specific model - because some times creators do not provide that info.
Fixed issue in v1.4.0 when editing metadata that broke the format of the edited safetensors file. Redownload the latest version for the fix (v1.4.2).
this is great

