Skip to content

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.

License

Notifications You must be signed in to change notification settings

ellypaws/sdmodels-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Gopher with a graduation cap 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.

    ____________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

Go Gopher climbing a ladder.

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 or later installed as the project uses Go programming language version 1.21.1.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages