Package-level declarations

Types

Link copied to clipboard

Coordinates AndroidImagePickerState behavior in the SDAI presentation layer.

Link copied to clipboard
private sealed interface AndroidImagePickOutcome

Defines the AndroidImagePickOutcome contract for the SDAI presentation layer.

Link copied to clipboard
data class ImageInPaintState(val strokes: List<InPaintStroke> = emptyList(), val brushSize: Int = DEFAULT_IN_PAINT_BRUSH_SIZE, val maskBlur: Int = DEFAULT_IN_PAINT_MASK_BLUR, val maskMode: ImageInPaintState.MaskMode = MaskMode.InPaintMasked, val maskContent: ImageInPaintState.MaskContent = MaskContent.Original, val area: ImageInPaintState.Area = Area.WholePicture, val onlyMaskedPaddingPx: Int = DEFAULT_IN_PAINT_MASK_PADDING)

Carries ImageInPaintState data through the SDAI presentation layer.

Link copied to clipboard
internal enum ImageInPaintTab(val label: String) : Enum<ImageInPaintTab>

Coordinates ImageInPaintTab behavior in the SDAI presentation layer.

Link copied to clipboard
internal class ImageToImageActionHandler(val dispatchersProvider: DispatchersProvider, val getRandomImageUseCase: GetRandomImageUseCase, val imageToImageUseCase: ImageToImageUseCase, val saveGenerationResultUseCase: SaveGenerationResultUseCase, val saveLastResultToCacheUseCase: SaveLastResultToCacheUseCase, val interruptGenerationUseCase: InterruptGenerationUseCase, val preferenceManager: PreferenceManager, val backgroundTaskManager: BackgroundTaskManager, val backgroundWorkObserver: BackgroundWorkObserver, val platformServices: GenerationPlatformServices, val buildInfoProvider: BuildInfoProvider, val dimensionValidator: DimensionValidator, val imageSaver: ImageSaver, val imageSharer: ImageSharer, val router: ImageToImageRouter, val platformActions: ImageToImagePlatformActions, val currentState: () -> ImageToImageState, val emitState: (ImageToImageState) -> Unit, val updateState: ((ImageToImageState) -> ImageToImageState) -> Unit, val launch: ViewModelLauncher, val onError: (Throwable) -> Unit)

Coordinates ImageToImageActionHandler behavior in the SDAI presentation layer.

Link copied to clipboard
sealed interface ImageToImageIntent : MviIntent

Defines the ImageToImageIntent contract for the SDAI presentation layer.

Link copied to clipboard
internal class ImageToImageIntentProcessor(val router: ImageToImageRouter, val updateState: ((ImageToImageState) -> ImageToImageState) -> Unit, val pickImage: (ImageToImagePickSource) -> Unit, val pickRandomImage: () -> Unit, val generate: () -> Unit, val cancelGeneration: () -> Unit, val saveImage: (String) -> Unit, val shareImage: (String) -> Unit, val saveGenerationResults: (List<AiGenerationResult>) -> Unit, val viewGenerationResult: (AiGenerationResult) -> Unit, val reportGenerationResult: (AiGenerationResult) -> Unit, val applyGenerationResult: (AiGenerationResult, Boolean) -> Unit)

Coordinates ImageToImageIntentProcessor behavior in the SDAI presentation layer.

Link copied to clipboard
internal sealed interface ImageToImagePanel

Defines the ImageToImagePanel contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface ImageToImagePickResult

Defines the ImageToImagePickResult contract for the SDAI presentation layer.

Link copied to clipboard

Coordinates ImageToImagePickSource behavior in the SDAI presentation layer.

Link copied to clipboard

Defines the ImageToImagePlatformActions contract for the SDAI presentation layer.

Link copied to clipboard
data class ImageToImageState(val loadingConfiguration: Boolean = true, val imageBase64: String = "", val denoisingStrength: Float = DEFAULT_DENOISING_STRENGTH, val pickingImage: Boolean = false, val generating: Boolean = false, val savingImage: Boolean = false, val sharingImage: Boolean = false, val inPaint: ImageInPaintState = ImageInPaintState(), val promptValidationError: String? = null, val error: String? = null, val message: String? = null, val screenModal: GenerationModal = GenerationModal.None, val results: List<AiGenerationResult> = emptyList(), val editTag: PromptTagEditRequest? = null, val onBoardingDemo: Boolean = false, val mode: ServerSource = ServerSource.AUTOMATIC1111, val advancedToggleButtonVisible: Boolean = true, val advancedOptionsVisible: Boolean = false, val formPromptTaggedInput: Boolean = false, val prompt: String = "", val negativePrompt: String = "", val width: String = DEFAULT_SIZE.toString(), val height: String = DEFAULT_SIZE.toString(), val samplingSteps: Int = 20, val cfgScale: Float = 7.0f, val restoreFaces: Boolean = false, val seed: String = "", val subSeed: String = "", val subSeedStrength: Float = 0.0f, val selectedSampler: String = "", val availableSamplers: List<String> = emptyList(), val selectedStylePreset: StabilityAiStylePreset = StabilityAiStylePreset.NONE, val selectedClipGuidancePreset: StabilityAiClipGuidance = StabilityAiClipGuidance.NONE, val openAiModel: OpenAiModel = OpenAiModel.default, val openAiSize: OpenAiSize = OpenAiSize.W1024_H1024, val openAiQuality: OpenAiQuality = OpenAiQuality.AUTO, val widthValidationError: UiText? = null, val heightValidationError: UiText? = null, val nsfw: Boolean = false, val batchCount: Int = 1) : MviState, GenerationInputFormState

Carries ImageToImageState data through the SDAI presentation layer.

Link copied to clipboard
data class ImageToImageStrings(val title: String = Localization.string("title_image_to_image"), val pickGallery: String = Localization.string("action_image_picker_gallery"), val pickCamera: String = Localization.string("action_image_picker_camera"), val pickRandom: String = Localization.string("action_image_picker_random"), val clear: String = Localization.string("action_clear"), val configureProvider: String = Localization.string("action_change_configuration"), val generate: String = Localization.string("action_generate"), val generating: String = Localization.string("notification_running_title"), val denoisingStrength: String = Localization.string("hint_denoising_strength"), val inputImage: String = Localization.string("title_input_image"), val inPaint: String = Localization.string("in_paint_title"), val sourceUnavailable: String = Localization.string("error_source_img2img_unsupported"), val unsupportedTitle: String = Localization.string("local_no_img2img_support_title"), val openAiUnsupportedSubtitle: String = Localization.string("openai_no_img2img_support_sub_title"), val openAiUnsupportedSubtitle2: String = Localization.string("openai_no_img2img_support_sub_title_2"), val localUnsupportedSubtitle: String = Localization.string("local_no_img2img_support_sub_title"), val localUnsupportedSubtitle2: String = Localization.string("local_no_img2img_support_sub_title_2"), val save: String = Localization.string("action_save"), val savingImage: String = Localization.string("message_image_saving"), val share: String = Localization.string("action_share_prompt"), val sharingImage: String = Localization.string("message_image_sharing"), val results: String = Localization.string("title_generation_results"), val imageUnavailable: String = Localization.string("message_image_data_received"), val resultMeta: (AiGenerationResult) -> String = { result -> Localization.string( "generation_result_meta", result.width, result.height, result.samplingSteps, ) })

Carries ImageToImageStrings data through the SDAI presentation layer.

Link copied to clipboard
class ImageToImageViewModel(val dispatchersProvider: DispatchersProvider, val getConfigurationUseCase: GetConfigurationUseCase, val getStableDiffusionSamplersUseCase: GetStableDiffusionSamplersUseCase, val getRandomImageUseCase: GetRandomImageUseCase, val imageToImageUseCase: ImageToImageUseCase, val saveGenerationResultUseCase: SaveGenerationResultUseCase, val saveLastResultToCacheUseCase: SaveLastResultToCacheUseCase, val interruptGenerationUseCase: InterruptGenerationUseCase, val observeHordeProcessStatusUseCase: ObserveHordeProcessStatusUseCase, val observeLocalDiffusionProcessStatusUseCase: ObserveLocalDiffusionProcessStatusUseCase, val preferenceManager: PreferenceManager, val backgroundTaskManager: BackgroundTaskManager, val backgroundWorkObserver: BackgroundWorkObserver, val platformServices: GenerationPlatformServices, val buildInfoProvider: BuildInfoProvider, val generationFormUpdateEvent: GenerationFormUpdateEvent, val dimensionValidator: DimensionValidator, val imageSaver: ImageSaver, val imageSharer: ImageSharer, val router: ImageToImageRouter, val platformActions: ImageToImagePlatformActions, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<ImageToImageState, ImageToImageIntent, EmptyEffect>

Coordinates ImageToImageViewModel behavior in the SDAI presentation layer.

Link copied to clipboard
data class InPaintPoint(val x: Float, val y: Float)

Carries InPaintPoint data through the SDAI presentation layer.

Link copied to clipboard
data class InPaintStroke(val points: List<InPaintPoint>, val brushSize: Int, val canvasWidth: Int, val canvasHeight: Int)

Carries InPaintStroke data through the SDAI presentation layer.

Link copied to clipboard
private class IosImagePicker : NSObject, UIImagePickerControllerDelegateProtocol, UINavigationControllerDelegateProtocol

Coordinates IosImagePicker behavior in the SDAI presentation layer.

Link copied to clipboard
private sealed interface IosImagePickOutcome

Defines the IosImagePickOutcome contract for the SDAI presentation layer.

Link copied to clipboard

Provides the NoOpImageToImagePlatformActions singleton used by the SDAI presentation layer.

Link copied to clipboard
internal data class StableDiffusionSamplersKey(val serverUrl: String, val demoMode: Boolean)

Carries StableDiffusionSamplersKey data through the SDAI presentation layer.

Properties

Link copied to clipboard

Exposes the AiGenerationResult value used by the SDAI presentation layer.

Link copied to clipboard
private const val CROPPED_IMAGE_JPEG_QUALITY: Int = 95

Exposes the CROPPED_IMAGE_JPEG_QUALITY value used by the SDAI presentation layer.

private const val CROPPED_IMAGE_JPEG_QUALITY: Int = 95

Exposes the CROPPED_IMAGE_JPEG_QUALITY value used by the SDAI presentation layer.

Link copied to clipboard
internal const val DEFAULT_DENOISING_STRENGTH: Float = 0.75f

Exposes the DEFAULT_DENOISING_STRENGTH value used by the SDAI presentation layer.

Link copied to clipboard
internal const val DEFAULT_IN_PAINT_BRUSH_SIZE: Int = 16

Exposes the DEFAULT_IN_PAINT_BRUSH_SIZE value used by the SDAI presentation layer.

Link copied to clipboard
internal const val DEFAULT_IN_PAINT_MASK_BLUR: Int = 4

Exposes the DEFAULT_IN_PAINT_MASK_BLUR value used by the SDAI presentation layer.

Link copied to clipboard
internal const val DEFAULT_IN_PAINT_MASK_PADDING: Int = 32

Exposes the DEFAULT_IN_PAINT_MASK_PADDING value used by the SDAI presentation layer.

Link copied to clipboard
internal const val DEFAULT_SIZE: Int = 512

Exposes the DEFAULT_SIZE value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the ServerSource value used by the SDAI presentation layer.

Link copied to clipboard
internal const val IN_PAINT_BRUSH_SIZE_MAX: Int = 60

Exposes the IN_PAINT_BRUSH_SIZE_MAX value used by the SDAI presentation layer.

Link copied to clipboard
internal const val IN_PAINT_BRUSH_SIZE_MIN: Int = 1

Exposes the IN_PAINT_BRUSH_SIZE_MIN value used by the SDAI presentation layer.

Link copied to clipboard
internal const val IN_PAINT_MASK_BLUR_MAX: Int = 64

Exposes the IN_PAINT_MASK_BLUR_MAX value used by the SDAI presentation layer.

Link copied to clipboard
internal const val IN_PAINT_MASK_BLUR_MIN: Int = 1

Exposes the IN_PAINT_MASK_BLUR_MIN value used by the SDAI presentation layer.

Link copied to clipboard
internal const val IN_PAINT_MASK_PADDING_MAX: Int = 256

Exposes the IN_PAINT_MASK_PADDING_MAX value used by the SDAI presentation layer.

Link copied to clipboard
internal const val IN_PAINT_MASK_PADDING_MIN: Int = 0

Exposes the IN_PAINT_MASK_PADDING_MIN value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MAX_BATCH_COUNT: Int = 20

Exposes the MAX_BATCH_COUNT value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MAX_CFG_SCALE: Float = 30.0f

Exposes the MAX_CFG_SCALE value used by the SDAI presentation layer.

Link copied to clipboard
private const val MAX_CROPPED_IMAGE_SIDE: Int = 1536

Exposes the MAX_CROPPED_IMAGE_SIDE value used by the SDAI presentation layer.

private const val MAX_CROPPED_IMAGE_SIDE: Int = 1536

Exposes the MAX_CROPPED_IMAGE_SIDE value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MAX_DENOISING_STRENGTH: Float = 1.0f

Exposes the MAX_DENOISING_STRENGTH value used by the SDAI presentation layer.

Link copied to clipboard
private const val MAX_PICKED_IMAGE_SIDE: Int = 1536

Exposes the MAX_PICKED_IMAGE_SIDE value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MAX_STEPS: Int = 150

Exposes the MAX_STEPS value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MAX_SUB_SEED_STRENGTH: Float = 1.0f

Exposes the MAX_SUB_SEED_STRENGTH value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MIN_BATCH_COUNT: Int = 1

Exposes the MIN_BATCH_COUNT value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MIN_CFG_SCALE: Float = 1.0f

Exposes the MIN_CFG_SCALE value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MIN_DENOISING_STRENGTH: Float = 0.0f

Exposes the MIN_DENOISING_STRENGTH value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MIN_STEPS: Int = 1

Exposes the MIN_STEPS value used by the SDAI presentation layer.

Link copied to clipboard
internal const val MIN_SUB_SEED_STRENGTH: Float = 0.0f

Exposes the MIN_SUB_SEED_STRENGTH value used by the SDAI presentation layer.

Link copied to clipboard
private const val PICKED_IMAGE_JPEG_QUALITY: Int = 95

Exposes the PICKED_IMAGE_JPEG_QUALITY value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the ImageBitmap value used by the SDAI presentation layer.

Link copied to clipboard
private val UI_IMAGE_PICKER_SOURCE_TYPE_CAMERA: UIImagePickerControllerSourceType

Exposes the UI_IMAGE_PICKER_SOURCE_TYPE_CAMERA value used by the SDAI presentation layer.

private val UI_IMAGE_PICKER_SOURCE_TYPE_PHOTO_LIBRARY: UIImagePickerControllerSourceType

Exposes the UI_IMAGE_PICKER_SOURCE_TYPE_PHOTO_LIBRARY value used by the SDAI presentation layer.

Functions

Link copied to clipboard
internal fun String.appendPromptTag(tag: String): String

Executes the appendPromptTag step in the SDAI presentation layer.

Link copied to clipboard
private fun UIImage.base64Jpeg(): String?

Executes the base64Jpeg step in the SDAI presentation layer.

Link copied to clipboard
internal fun BrushSizeSlider(modifier: Modifier = Modifier, size: Int, onValueChanged: (Int) -> Unit)

Renders the BrushSizeSlider UI for the SDAI presentation layer.

Link copied to clipboard

Executes the function step in the SDAI presentation layer.

Link copied to clipboard

Executes the centerCropAndScale step in the SDAI presentation layer.

Link copied to clipboard
internal actual suspend fun cropBase64ImageToSquare(base64: String): String

Executes the cropBase64ImageToSquare step in the SDAI presentation layer.

internal expect suspend fun cropBase64ImageToSquare(base64: String): String

Executes the cropBase64ImageToSquare step in the SDAI presentation layer.

internal actual suspend fun cropBase64ImageToSquare(base64: String): String

Executes the cropBase64ImageToSquare step in the SDAI presentation layer.

Link copied to clipboard

Converts SDAI data with decodeSampledBitmap.

Link copied to clipboard

Renders the DenoisingStrengthSlider UI for the SDAI presentation layer.

Link copied to clipboard

Renders the EmptyGeneratedImage UI for the SDAI presentation layer.

Link copied to clipboard
internal fun EmptyImageInputActions(strings: ImageToImageStrings, enabled: Boolean, onGalleryClick: () -> Unit, onCameraClick: () -> Unit, onRandomClick: () -> Unit)

Renders the EmptyImageInputActions UI for the SDAI presentation layer.

Link copied to clipboard
internal actual suspend fun encodeInPaintMaskBase64(imageBase64: String, strokes: List<InPaintStroke>): String?

Executes the encodeInPaintMaskBase64 step in the SDAI presentation layer.

internal expect suspend fun encodeInPaintMaskBase64(imageBase64: String, strokes: List<InPaintStroke>): String?

Executes the encodeInPaintMaskBase64 step in the SDAI presentation layer.

internal actual suspend fun encodeInPaintMaskBase64(imageBase64: String, strokes: List<InPaintStroke>): String?

Executes the encodeInPaintMaskBase64 step in the SDAI presentation layer.

Link copied to clipboard

Executes the function step in the SDAI presentation layer.

Link copied to clipboard
internal fun flushPendingTaggedText(state: ImageToImageState, promptChipTextFieldState: MutableState<TextFieldValue>, negativePromptChipTextFieldState: MutableState<TextFieldValue>, processIntent: (ImageToImageIntent) -> Unit)

Executes the flushPendingTaggedText step in the SDAI presentation layer.

Link copied to clipboard
internal fun GeneratedImageItem(result: AiGenerationResult, strings: ImageToImageStrings, savingImage: Boolean, sharingImage: Boolean, processIntent: (ImageToImageIntent) -> Unit)

Renders the GeneratedImageItem UI for the SDAI presentation layer.

Link copied to clipboard
internal fun GenerationHistoryDialog(onClose: () -> Unit, onGenerationSelected: (AiGenerationResult) -> Unit)

Renders the GenerationHistoryDialog UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageInPaintCanvas(modifier: Modifier = Modifier, image: ImageBitmap, state: ImageInPaintState, drawEnabled: Boolean = true, onStrokeDrawn: (InPaintStroke) -> Unit = {})

Renders the ImageInPaintCanvas UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageInPaintParamsForm(modifier: Modifier = Modifier, model: ImageInPaintState, processIntent: (ImageToImageIntent) -> Unit)

Renders the ImageInPaintParamsForm UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageInPaintScreenContent(modifier: Modifier = Modifier, image: ImageBitmap, state: ImageInPaintState, processIntent: (ImageToImageIntent) -> Unit, onClose: () -> Unit)

Renders the ImageInPaintScreenContent UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageInPaintSection(modifier: Modifier = Modifier, image: ImageBitmap, state: ImageInPaintState, processIntent: (ImageToImageIntent) -> Unit)

Renders the ImageInPaintSection UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageInputSection(state: ImageToImageState, strings: ImageToImageStrings, image: ImageBitmap?, processIntent: (ImageToImageIntent) -> Unit, onInPaintClick: () -> Unit)

Renders the ImageInputSection UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImagePickerButton(text: String, icon: ImageVector, enabled: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier)

Renders the ImagePickerButton UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImagePickerTileButton(text: String, icon: ImageVector, enabled: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier)

Renders the ImagePickerTileButton UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageToImageBody(state: ImageToImageState, strings: ImageToImageStrings, inputImageBitmap: ImageBitmap?, promptChipTextFieldState: MutableState<TextFieldValue>, negativePromptChipTextFieldState: MutableState<TextFieldValue>, processIntent: (ImageToImageIntent) -> Unit, onInPaintClick: () -> Unit)

Renders the ImageToImageBody UI for the SDAI presentation layer.

Link copied to clipboard
fun ImageToImageContent(state: ImageToImageState, processIntent: (ImageToImageIntent) -> Unit, modifier: Modifier = Modifier, strings: ImageToImageStrings = ImageToImageStrings(), useDrawerNavigation: Boolean = false)

Renders the ImageToImageContent UI for the SDAI presentation layer.

Link copied to clipboard
internal fun ImageToImageForm(state: ImageToImageState, strings: ImageToImageStrings, promptChipTextFieldState: MutableState<TextFieldValue>, negativePromptChipTextFieldState: MutableState<TextFieldValue>, processIntent: (ImageToImageIntent) -> Unit)

Renders the ImageToImageForm UI for the SDAI presentation layer.

Link copied to clipboard

Executes the imageUriToPickResult step in the SDAI presentation layer.

Link copied to clipboard

Executes the localizedMessageText step in the SDAI presentation layer.

Link copied to clipboard
internal fun ImageToImageState.mapToPayload(maskBase64: String? = null): ImageToImagePayload

Converts SDAI data with mapToPayload.

Link copied to clipboard
internal fun ImageToImageState.progressModal(canCancelLocalGeneration: Boolean): GenerationModal

Executes the progressModal step in the SDAI presentation layer.

Link copied to clipboard

Renders the rememberImageToImagePlatformActions UI for the SDAI presentation layer.

Renders the rememberImageToImagePlatformActions UI for the SDAI presentation layer.

Renders the rememberImageToImagePlatformActions UI for the SDAI presentation layer.

Link copied to clipboard
private fun UIApplication.rootViewController(): UIViewController?

Executes the rootViewController step in the SDAI presentation layer.

Link copied to clipboard
internal fun Float.roundToString(): String

Executes the roundToString step in the SDAI presentation layer.

Link copied to clipboard
internal fun SelectableRow(selected: Boolean, text: String, onClick: () -> Unit)

Renders the SelectableRow UI for the SDAI presentation layer.

Link copied to clipboard
internal fun SelectedImageInput(image: ImageBitmap, inPaint: ImageInPaintState, strings: ImageToImageStrings, enabled: Boolean, onInPaintClick: () -> Unit, onClearClick: () -> Unit)

Renders the SelectedImageInput UI for the SDAI presentation layer.

Link copied to clipboard
private fun InPaintStroke.toAndroidPath(targetWidth: Int, targetHeight: Int): Path

Converts SDAI data with toAndroidPath.

Link copied to clipboard

Converts SDAI data with toImageToImageIntent.

Link copied to clipboard
internal fun List<AiGenerationResult>.toImageToImageResultModal(autoSaveEnabled: Boolean, reportEnabled: Boolean): GenerationModal

Converts SDAI data with toImageToImageResultModal.

Link copied to clipboard

Converts SDAI data with toInPaintPoint.

Link copied to clipboard
private fun Bitmap.toJpegBase64(): String

Converts SDAI data with toJpegBase64.

Link copied to clipboard
internal fun InPaintStroke.toPath(targetWidth: Float, targetHeight: Float): Path

Converts SDAI data with toPath.

Link copied to clipboard
private fun UIViewController.topMostPresentedViewController(): UIViewController

Converts SDAI data with topMostPresentedViewController.

Link copied to clipboard
private fun InPaintStroke.toSkiaPath(targetWidth: Int, targetHeight: Int): Path

Converts SDAI data with toSkiaPath.

Link copied to clipboard
internal fun UnsupportedImageToImageBody(modifier: Modifier = Modifier, mode: ServerSource, strings: ImageToImageStrings)

Renders the UnsupportedImageToImageBody UI for the SDAI presentation layer.

Link copied to clipboard

Executes the validated step in the SDAI presentation layer.

Link copied to clipboard
internal fun ImageToImageState.withSettings(settings: Settings, stableDiffusionSamplers: List<String>?): ImageToImageState

Executes the withSettings step in the SDAI presentation layer.

Link copied to clipboard
internal fun ImageToImageState.withSource(source: ServerSource, stableDiffusionSamplers: List<String>?): ImageToImageState

Executes the withSource step in the SDAI presentation layer.