Stable Diffusion Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > SD - Stable Diffusion AI > SDL. - Stable Diffusion Local System >

Stable Diffusion Commands

SDL.Set Model Free

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Set Model Free

Set the Model to use for local Stable Diffusion

Sampler_0052_Steps_140_SetSteps

Generated using the SDL.-Commands

 

Intention

 

How do I specify which model to use?

If you have multiple models in the .../stable-diffusion-webui/models/stable-diffusion/ folder,

you can specify which model to use, using SDL.Set Model Free.

The model name should be exactly the file name from fo the model-file in the folder, including the ending.

The Command does not verify the Model-name so you can specify whatever you want, and possibly get an error in return if the file does not exist or is invalid.

 

 

clip0743

Here you can see some of the model files that can be in the /stable-diffusion-webui/models/stable-diffusion/ folder.

 

 

Syntax

 

 

SDL.Set Model Free[|P1]

 

 

Parameter Explanation

 

P1 - (optional) Is the Name of the Model-File to use, exactly how the file-name in the folder is. If you omit P1 or leave it empty,

         the internal SDL_Model - Register will be cleared and the default Model (as set in the GUI) will be used.
         

 

 

Example

 

$$PRO=seven sexy Photomodel women dancing on a rainbow for select with number

$$NEG=ugly,comic,unrealistic,fat

'SDL.Set Size free|512|512

FOR.$$LOO|100|150|10

  SDL.SetSteps|$$LOO   

  $$FIL=?path\Sampler_?_Steps_$$LOO_SetSteps.jpg

  FOR.$$LOP|0|21

    SDL.Set_Sampler|$$LOP

    SDL.Get Several|4|$$RET

    DBP. Sampler=$$LOP ($$RET)

    ' Please choose a Model that you have installed

    SDL.Set Model Free|dreamlike-photoreal-2.0.safetensors

    SDL.Set Extra Parameter|"restore_faces": true

    SDL.gtf|$$PRO|$$FIL|$$NEG|7

    POP.$$PAT

    POP.$$SUC

    IVV.$$SUC=1

      ANA.load|0|$$PAT

      ANA.Resizeto|0|1|640|640

      ANA.show|1

      ANA.Save|1|$$PAT

    ELS.

      SDL.Get Several|6|$$RET

      DBP.$$RETSetSteps|10

      SDL.Show Error

      MBT.No File generated.

    EIF.

  NEX.

NEX.

MBX.!

ENR.

 

 

 

 

Remarks

 

' Technically you could do the same also using the EXTRA-Parameter, like this:

$$MOD=v2-1_768-nonema-pruned.ckpt
SDL.Set Extra Parameter|"override_settings": {"sd_model_checkpoint": "$$MOD"}

 

 

Limitations:

 

-

 

 

See also: