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 Intern

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Img2Msk Intern

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

 

 

Intention

 

The SDL.Img2Msk Intern 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 (P2) and the target path (P3) to generate new images.

 

The command can produce multiple images depending on the Internal Parameter registers that are set using these commands:

 

SDL.Set Style Free

SDL.Set Prompt

SDL.Set negative Prompt

SDL.Set Sampler

SDL.Set Steps

SDL.Set Scale

SDL.Set Size

 

All other parameters must be set using the SDL.Set Extra Parameters command.

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

 

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

 

 

Syntax

 

 

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

 

 

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+"denoising_strength": 0.25,

$$EXT+"batch_size": 3,

$$EXT+"n_iter": 1,

$$EXT+"restore_faces": true,

$$EXT+"tiling": false,

$$EXT+"mask_blur": 10,

$$EXT+"mask_blur_x": 14,

$$EXT+"mask_blur_y": 14,

$$EXT+"inpainting_fill": 0,

$$EXT+"inpaint_full_res": true,

$$EXT+"inpaint_full_res_padding": 0,

$$EXT+"inpainting_mask_invert": 1,

$$EXT+"initial_noise_multiplier": 0.5,

 

SDL.Set Extra Parameter|$$EXT

 

SDL.Set Prompt|$$PRO

'SDL.Set negative Prompt|$$NEG

SDL.Set Scale|7

SDL.Set Size|512|512

SDL.Set Steps|90

 

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

$$IMG=?exeloc\TP01.jpg

$$TAR=?exeloc\ZPA_?.png

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

MBX.Generated Files: $$RES

ENR.

 

TP01 -->ZPA_11 --> ZPA_8

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: