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.Img2Img Intern

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Img2Img Intern

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.Img2Img Intern command is designed to start the Image-to-Image process using the Stable Diffusion API.

It takes an original image (P1) and a target path (P2) 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 (P3) 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.Img2Img Intern|P1|P2[|P3]

 

 

Parameter Explanation

 

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

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

P3 - (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.75,

$$EXT+"batch_size": 3,

$$EXT+"n_iter": 1,

$$EXT+"restore_faces": true,

$$EXT+"tiling": false,

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

 

$$IMG=?exeloc\TP01.jpg

$$TAR=?exeloc\IPA_?.png

SDL.Img2Img Intern|$$IMG|$$TAR|$$RES

MBX.Generated Files: $$RES

ENR.

 

TP01 -->TP02_2

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: