An open API service indexing awesome lists of open source software.

https://github.com/s9roll7/lora2wildcard

Script to generates a wildcard from the lora directory
https://github.com/s9roll7/lora2wildcard

a1111 stable-diffusion

Last synced: 3 months ago
JSON representation

Script to generates a wildcard from the lora directory

Awesome Lists containing this project

README

          

# lora2wildcard

This is a small script that generates a wildcard from the lora directory of A1111 or reforge.
Extract the tags used for training from the metadata in safetensors and use them in wildcard.
If a json file output by civitai helper exists, it is also used.

### usage
```sh
python lora2wildcard.py LORA_DIR_PATH

python lora2wildcard.py -h
```

### sample output
```sh
,1girl, 2b, black blindfold, black dress, black hairband, blindfold, clothing cutout, dress, hairband, juliet sleeves, long sleeves, mole, mole under mouth, puffy sleeves, short hair, solo, white hair, yorha no. 2 type b
,asuka soryu langley, solo
```