├── README.md └── index.html /README.md: -------------------------------------------------------------------------------- 1 | # LoRA Metadata Viewer/Editor 2 | 3 | Single file pure HTML tool for viewing and editing LoRA metadata locally on your web browser without the need of installation or internet connectivity. 4 | 5 | ## Usage 6 | No need for prior setup, just open the HTML file with the web browser of your choice and drag a Safetensors file. Alternatively, you can use the version hosted on GitHub through the link provided in the demo section. 7 | 8 | ## Demo 9 | https://xypher7.github.io/lora-metadata-viewer 10 | 11 | ## Features 12 | - Configurable metadata summary 13 | - CivitAI resource lookup. (Requires internet connection) 14 | - Configurable training tag summary 15 | - Edit or remove metadata in the Safetensors file 16 | - Doro :3 17 | 18 | ## Offline Execution 19 | The tool is designed to be used offline and processing is entirely done on your browser. However, the following features require fetching some resources on the internet and will not work without internet connectivity: 20 | - CivitAI data lookup 21 | - Processing large files (greater than 2GB) 22 | - Optionally, if you wish to maintain everything local, you may download the sha256.umd.min.js file, place it in the same directory as the HTML file, and replace this line 23 | ```html 24 | 25 | ``` 26 | with 27 | ```html 28 | 29 | ``` 30 | 31 | ## Screenshots 32 | ![App Screenshot](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/ed823c08-4551-40b4-badd-aab544d463dc/original=true,quality=90/Screenshot%202024-09-05%20235613.jpeg) 33 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LoRA Metadata Viewer 5 | 6 | 7 | 82 | 83 | 84 |
85 | LoRA Metadata Viewer 86 | 87 |
88 |
89 | 90 | 91 |
92 |
93 |
94 | 95 | 96 | 97 | 98 | 99 | 100 |
101 |
Settings are stored in your browser through the Local Storage API and will persist across sessions. Use this section to either reset, load, or save your current configuration.
102 | 103 | 104 | 105 | 106 | No file chosen 107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
Summary Fields
Specify the name of the fields to be displayed in the summary section, separated by commas. To include fields from the CivitAI metadata, add "civitai." prefix (ie. "civitai.trainedWords"). To include custom fields, add "custom." prefix (ie. "custom.training_time").
121 | 122 |
123 |
Custom Summary Template
This section defines the template to be used in the custom summary layout in HTML format. The fields to be displayed must be defined within {{}}. ( ie: {{ss_output_name}} ). To include file metadata fields, simply specify the field name. To include fields from the CivitAI metadata, add "civitai." prefix (ie. "civitai.trainedWords"). To include custom fields, add "custom." prefix (ie. "custom.training_time").
124 | 292 |
293 |
294 |
Metadata Editor Fields
Specify the name of the fields to be displayed in the simple view of the metadata editor section, separated by commas.
295 | 296 |
297 |
298 |
Custom Fields
This section defines the list of custom fields that may be displayed in the summary section. Calculations are defined as javascript expressions. Data from the following are available for calculations: Safetensors File metadata (fileMetadata), CivitAI resource info (civitaiMetadata), and previously defined custom fields (customMetadata). Keep in mind that custom fields are created in the same order they are defined in the list, meaning you may use a custom field in a calculation only if it was defined in a previous row.
299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 315 |
NameCalculation 
316 | 317 | 318 | 319 |
320 |
321 |
322 | 323 |
324 |

Drag and drop your safetensors file here
or click to select a safetensors file

325 |
326 | 327 | 328 | 329 |
330 |
331 | 332 |
333 | 334 |
335 |

Summary

336 |
337 |
338 | 339 | 345 |
346 |
347 | 348 |

 349 |         
350 |
351 |
352 |
353 |
354 |
355 | 361 |
362 | 363 |
364 |

Suggested Prompt

365 |
366 |
367 |
368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 378 | 386 | 387 | 388 | 389 | 392 | 400 | 401 | 402 | 403 | 404 |
376 | 377 | 379 | 385 |
390 | 391 | 393 | 399 |
405 |
406 |
407 |
408 |
409 | 410 |
411 |

Tag Frequency

412 |
413 |
414 |
415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 425 | 433 | 434 | 435 | 436 | 439 | 447 | 448 | 449 | 450 | 451 |
423 | 424 | 426 | 432 |
437 | 438 | 440 | 446 |
452 |
453 | 454 |

 455 |       
456 |
457 | 458 |
459 |

CivitAI Info

460 |
461 | 462 | 463 | 464 | 465 |
Model URL:
Resource Info:
Preview:
466 |
467 |
468 |
469 | 470 |
471 |

Metadata

472 |
473 | 474 |

 475 |       
476 |
477 | 478 |
479 |

Metadata Editor

480 |
481 |
482 | 483 | 487 |
488 | 492 |
493 | 494 |
495 | 496 | 497 |
498 |
499 |
500 |
501 |
502 | 503 |
504 | 509 | 510 | 511 |
512 |
513 |
514 |
515 |
516 |
0%
517 |
518 |
519 | 520 | 521 | 522 | 1617 | 1618 | 1619 | --------------------------------------------------------------------------------