SDL. - Image to Image

<< Click to Display Table of Contents >>

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

SDL. - Image to Image

SDL.Img2Msk

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Img2Msk

Initiates the Image-to-Image process using the Stable Diffusion API from Automatic1111, generating one or multiple images based on the parameters set.

 

 

Intention

 

The SDL.Img2Msk command is designed to start the Image-to-Image process using the Stable Diffusion API.

It takes an original image (P1) and a Mask-Picture can be used to generate picture(s) in the target path (P3).

The command can produce multiple images depending on the parameters set using the SDL.Set Extra Parameters command.

An optional parameter (P4) can be used to return the paths of all generated images.

 

Important:

This command does not rely on any other commands like "SDL.Set Prompt" or "SDL.Set Style" etc.

Using this command you have to specify ALL Parameters using the

using the SDL.Set Extra Parameters command.

 

The Image-Parameters need a special processing and are therefore specified directly with the command,

 

Syntax

 

 

SDL.Img2Msk|P1|P2|P3[|P4]

 

 

Parameter Explanation

 

P1 - Original Pic: Specifies the file path of the original image to be processed.

P2 - Mask Path: Specifies the File name and Path for the Mask-File

P3 - Target Path: Specifies the target file path where the new image(s) will be saved. Can contain a "?" to indicate multiple images.

P4 - (Optional): Variable for Result Path: A variable to store the file paths of all generated images. If omitted, these are placed on the Top Of Stack (TOS).

 

Returns a list of File names of all generated files, separated using the "*".

 

 

 

Example

 

 

'***********************************

' SDL.-Sample

'***********************************

$$PRO=girl,hero,propaganda,sexy,epic,russia

$$NEG=ugly,unnatural, fat

$$EXT=

$$EXT+"prompt": "$$PRO",

$$EXT="negative_prompt": "$$NEG",

$$EXT+"denoising_strength": 0.75,

$$EXT+"image_cfg_scale": 4,

$$EXT+"batch_size": 3,

$$EXT+"n_iter": 1,

$$EXT+"steps": 70,

$$EXT+"cfg_scale": 7,

$$EXT+"width": 512,

$$EXT+"height": 512,

$$EXT+"restore_faces": true,

$$EXT+"tiling": false,

SDL.Set Extra Parameter|$$EXT

 

$$MSK=?exeloc\Masks\Weiser Kreis B 512.png

$$IMG=?exeloc\TP01.jpg

$$TAR=?exeloc\ZPA_?.png

SDL.Img2Msk|$$IMG|$$MSK|$$TAR|$$RES

MBX.Generated Files: $$RES

ENR.

 

TP01-->ZPA_11 --> ZPA_8

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: