discard-icon
vip-icon
Explore Related

Lora metadata shortener/cleaner

v1.0
Reprint
Last Update:2025-07-27
#tool
#safetensor
#python

Lora metadata shortener/cleaner

This is a simple python code I just wrote for shortening the metadata (especially the tags).

It uses the thresholds values that you set at the top of the .py file (screenshot attached).

Use the code with the Metadata Viewer/editor by Xypher: https://civitai.com/models/249721/lora-metadata-viewereditor

The python code should be placed in a directory (I place it with Xypher's html) with an input json and when you run the code it outputs a new cleaned json.

Edit the reg threshold to 1 or higher and the reg folder will be removed (helpful correcting the number of tags in the dataset).

Pretty basic, feel free to use and modify the code.

Quick Translation
Comment 0
Create (0)
Favorite (0)
Download (0)
Model Details
Type
Other
Rating
0
Publish Time
2024-02-08
Base Model
SD 1.5
License Scope
Model Source: civitai

1. The rights to reposted models belong to original creators.

2. Original creators should contact SeaArt.AI staff through official channels to claim their models. We are committed to protecting every creator's rights.

Creative License Scope
Online Image Generation
Merge
Allow Downloads
Commercial License Scope
Sale or Commercial Use of Generated Images
Resale of Models or Their Sale After Merging