ModelsOther

Lora metadata shortener/cleaner

Lora metadata shortener/cleaner

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.

Related Model

Saturation Control SD15
Saturation Control SD15
[Segmentation] Comic template
[Segmentation] Comic template
Face Swap for 2 People with Face_ID and Reactor
Face Swap for 2 People with Face_ID and Reactor
Penis + Pussy Adetailer Model
Penis + Pussy Adetailer Model
ComfyUI Multiple 1.5-SDXL Models Comparison Workflow 多模型输出对比工作流
ComfyUI Multiple 1.5-SDXL Models Comparison Workflow 多模型输出对比工作流
Prompt Schedule Helper
Prompt Schedule Helper

No comments

No comments...