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

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Img2Img

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 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 parameters set using the SDL.Set Extra Parameters command.

An optional parameter (P3) 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.Img2Img|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 FIlenames 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

 

$$IMG=?exeloc\TP01.jpg

$$TAR=?exeloc\SPA.png

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

MBX.Generated Files: $$RES

ENR.

 

TP01 -->TP02_2

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: