https://github.com/ellypaws/sdmodels-json
This is a utility project built with Go programming language. It reads files containing model names used in Stable Diffusion WebUI, categorizes the models into Lora, Checkpoint, Vae, and Embedding, and outputs the organized data in JSON format.
https://github.com/ellypaws/sdmodels-json
comfyui go json stable-diffusion-webui
Last synced: 2 months ago
JSON representation
This is a utility project built with Go programming language. It reads files containing model names used in Stable Diffusion WebUI, categorizes the models into Lora, Checkpoint, Vae, and Embedding, and outputs the organized data in JSON format.
- Host: GitHub
- URL: https://github.com/ellypaws/sdmodels-json
- Owner: ellypaws
- License: mit
- Created: 2023-09-20T13:31:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-30T23:30:23.000Z (over 1 year ago)
- Last Synced: 2025-02-15T08:38:36.387Z (4 months ago)
- Topics: comfyui, go, json, stable-diffusion-webui
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sdmodels-json
This project uses the Go programming language for categorizing different models like `Lora`, `Checkpoint`, `Vae`, and `Embedding`. It reads the data from the file, categorizes them accordingly and prints them.
##
Usage
To run the program, follow the steps:
1. Place your data file into the directory of the project. Alternatively, you can specify the path to the file while running the program.
2. Open `sdmodels-json.exe`
3. If the file is in the project directory under the name `loras.txt`, the program will use it automatically, else you will be prompted to enter the filename.
###
[Example file](models.example.txt)
```text
____________SAMPLERS____________
euler;
euler_ancestral;
uni_pc_bh2
___________SCHEDULERS___________
normal;
karras;
exponential;
sgm_uniform;
simple;
ddim_uniform
_____________VAES_______________
kl-f8-anime2.ckpt;
vae-ft-mse-840000-ema-pruned.ckpt
___________CHECKPOINTS__________
modelnamewithoutfolder.ckpt;
checkpoint.saftensors;
anime\modelname.safetensors;
kl-f8-anime2.vae.ckpt;
sdxl\768-v-ema.safetensors
_____________LORAS______________
lorafilenameNoFolder.safetensors;
artist\artistname.safetensors;
character\charactername.safetensors
```4. After the successful execution of the program, a JSON file named `models.json` containing the categorized data will be generated in the project directory.
## Building
To build the executable, navigate to the project's directory in the command line and run: `go build .`
Please ensure you have [Go SDK 1.21.1](https://go.dev/) or later installed as the project uses Go programming language version 1.21.1.