<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > SD - Stable Diffusion AI > SD - Shared Commands > Stable Diffusion - Shared Commands |
MiniRobotLanguage (MRL)
SDO./SDL.Generate with Steps
SDL.Generate with Steps / SDO.Generate with Steps
The two commands have the same Parameters therefore you can easily switch between rendering Online and local.
Intention
The "SDL.Generate with Steps" and "SDO.Generate with Steps" commands are part of the Stable Diffusion Local (SDL) and Stable Diffusion Online (SDO) suite of commands, respectively.
They are used to generate an image based on a given prompt, applying a specified number of steps.
The command can be used to find the best number of steps for a Theme and Sampler.
The generated image is created based on the prompts and parameters provided by the user.
The key difference between the two commands is the rendering location—SDL renders locally, while SDO renders in the Cloud via Stability AI (needs keyfile).
A unique and user-friendly design feature of these commands is the ease with which users can switch between local and cloud-based rendering. To change from rendering locally to rendering online, simply replace the "L" in "SDL." with an "O," resulting in "SDO." To switch from online to local rendering, do the opposite—replace the "O" with an "L." This feature provides a seamless way for users to choose where their images are rendered based on their needs and resources, without having to rewrite or restructure their commands.
SDO.SetKey|File
SDO.SetSize|512|512|stable-diffusion-v1-5
SDO.Set_Samples|1
SDO.Set Scale|30
$$PRO=gigantic underwater city, fishes divers, Arielle
$$NEG=ugly
SDO.Set Prompt|$$PRO
SDL.Set Extra Parameter|"restore faces": true
SDO.Set Style|1
FOR.$$STY|100|150|10
' Parameter 3 is the Style Value
$$FIL=?exeloc\Lori_?.png
SDO.gst||$$FIL|$$NEG|$$STY
'SDO.Show Error
SDO.Get Several|5|$$STA
DBP. We use Style: $$STA
NEX.
ENR.
Syntax
SDL.Generate with Steps[|P1][|P2][|P3][|P4]
SDO.Generate with Steps[|P1][|P2][|P3][|P4]
SDL.gst[|P1][|P2][|P3][|P4]
SDO.gst[|P1][|P2][|P3][|P4]
Parameter Explanation
P1: (Optional) The prompt made from words or phrases followed by a weight in parentheses.
The phrases are separated by commas.
In detail there is a difference, for SDO. you can add values in () after each term, like this:
$$PRO=robot (0.2),in golden color (0.4), on a rainbow (0.4)
$$NEG=malformed hands (0.5),dark colors (0.5)
These numbers added should sum up together 1, if not the engine will normalize these.
The numbers for the negative prompt will automatically be added as negative numbers.
For SDL. you can use a longer prompt in one Line, that contain "," to separate terms.
Make sure the most important topics are on the left side.
P2: (Optional) The path and file name of the output PNG file. This is optional. If not provided, a unique local path will be generated.
P3: (Optional) This is an optional negative prompt, formatted in the same way as P1.
P4: (Optional) The number of Steps between 10 and 150. A higher number can possibly improve quality but takes longer.
Example
'***********************************
'
'***********************************
SDO.SetKey|File
SDO.SetSize|512|512|stable-diffusion-v1-5
SDO.Set_Samples|1
SDO.Set Scale|30
'SDO.Set Steps 100
$$PRO=gigantic geodesic dome, underwater city, fishes divers, Arielle, (0.7)
$$NEG=ugly (0.3)
SDO.Set Prompt|$$PRO
SDO.Set Style|1
SDO.Get Several|5|$$STA
DBP. We use Style: $$STA
FOR.$$STY|1|7
' Parameter 3 is the Steps Value
$$FIL=?exeloc\Lori_?.png
SDO.gws||$$FIL|$$NEG|$$STY
'SDO.Show Error
NEX.
ENR.
Remarks
-
Limitations:
'***********************************
' SDO.-Sample 1 + Censored Prompt
'***********************************
SDO. as a cloud based command is censored.
Means Terms like "Sexy" are not allowed as you can test with the Script below.
This does NOT apply to SDL.
Using SDL. you can use any terms on your own responsibility.
SDO.SetKey|File
SDO.SetSize|512|512|stable-diffusion-v1-5
SDO.Set_Samples|3
SDL.Set Extra Parameter|"restore faces": true
$$PRO=sexy african women(0.3),rainbow colored hair(.5),riding a dragon(0.2)
$$NEG=b/w,old(.5),fat(.3)
SDO.gtf|$$PRO||$$NEG|100
POP.$$PAT
POP.$$SUC
IVV.$$SUC=1
ANA.load|0|$$PAT
ANA.show|0!
ELS.
AIC.Show Error
MBX.No File generated.
EIF.
MBX.!
ENR.
If you get this error message your terms have been censored.
While SDO.-Terms are censored the pictures are not,
therefore you will still get files like this sometimes.
'***********************************
' SDO.-Sample 2 + Valid Prompt
'***********************************
SDO.SetKey|File
SDO.SetSize|512|512|stable-diffusion-v1-5
SDO.Set_Samples|3
SDL.Set Extra Parameter|"restore faces": true
$$PRO=african women(0.3),rainbow colored hair(.5),riding a dragon(0.2)
$$PRO="african women(0.3),rainbow colored hair(.5),riding a dragon(0.2)"
$$NEG=b/w,old(.5),fat(.3)
SDO.gtf|$$PRO||$$NEG|100
POP.$$PAT
POP.$$SUC
IVV.$$SUC=1
ANA.load|0|$$PAT
ANA.show|0!
ELS.
AIC.Show Error
MBX.No File generated.
EIF.
MBX.!
ENR.
See also:
•