ImageToImageState
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 platform: Platform = Platform.ANDROID, 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 selectedScheduler: Scheduler = Scheduler.AUTOMATIC, val availableForgeModules: List<ForgeModule> = emptyList(), val selectedForgeModules: List<ForgeModule> = emptyList(), 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 falAiModel: FalAiModel = FalAiModel.defaultImageToImage, val falAiImageSize: FalAiImageSize = FalAiImageSize.default, val falAiAcceleration: FalAiAcceleration = FalAiAcceleration.default, val falAiSyncMode: Boolean = false, val sdxlBackend: SdxlBackend = SdxlBackend.AUTO, val bonsaiBackend: BonsaiBackend = BonsaiBackend.AUTO, val bonsaiBackendSelectionVisible: Boolean = false, val arliAiModels: List<String> = emptyList(), val arliAiModel: String = "", val widthValidationError: UiText? = null, val heightValidationError: UiText? = null, val nsfw: Boolean = false, val batchCount: Int = 1, val hires: HiresConfig = HiresConfig.DISABLED, val aDetailer: ADetailerConfig = ADetailerConfig.DISABLED, val aDetailerAvailable: Boolean = false, val aDetailerRefreshing: Boolean = false) : MviState, GenerationInputFormState(source)
Complete render state for img2img.
It extends the shared generation form state with source-image, inpaint, and result handling fields while keeping platform-aware local provider controls consistent with the txt2img screen.
Constructors
Link copied to clipboard
constructor(loadingConfiguration: Boolean = true, imageBase64: String = "", denoisingStrength: Float = DEFAULT_DENOISING_STRENGTH, pickingImage: Boolean = false, generating: Boolean = false, savingImage: Boolean = false, sharingImage: Boolean = false, inPaint: ImageInPaintState = ImageInPaintState(), promptValidationError: String? = null, error: String? = null, message: String? = null, screenModal: GenerationModal = GenerationModal.None, results: List<AiGenerationResult> = emptyList(), editTag: PromptTagEditRequest? = null, onBoardingDemo: Boolean = false, platform: Platform = Platform.ANDROID, mode: ServerSource = ServerSource.AUTOMATIC1111, advancedToggleButtonVisible: Boolean = true, advancedOptionsVisible: Boolean = false, formPromptTaggedInput: Boolean = false, prompt: String = "", negativePrompt: String = "", width: String = DEFAULT_SIZE.toString(), height: String = DEFAULT_SIZE.toString(), samplingSteps: Int = 20, cfgScale: Float = 7.0f, restoreFaces: Boolean = false, seed: String = "", subSeed: String = "", subSeedStrength: Float = 0.0f, selectedSampler: String = "", selectedScheduler: Scheduler = Scheduler.AUTOMATIC, availableForgeModules: List<ForgeModule> = emptyList(), selectedForgeModules: List<ForgeModule> = emptyList(), availableSamplers: List<String> = emptyList(), selectedStylePreset: StabilityAiStylePreset = StabilityAiStylePreset.NONE, selectedClipGuidancePreset: StabilityAiClipGuidance = StabilityAiClipGuidance.NONE, openAiModel: OpenAiModel = OpenAiModel.default, openAiSize: OpenAiSize = OpenAiSize.W1024_H1024, openAiQuality: OpenAiQuality = OpenAiQuality.AUTO, falAiModel: FalAiModel = FalAiModel.defaultImageToImage, falAiImageSize: FalAiImageSize = FalAiImageSize.default, falAiAcceleration: FalAiAcceleration = FalAiAcceleration.default, falAiSyncMode: Boolean = false, sdxlBackend: SdxlBackend = SdxlBackend.AUTO, bonsaiBackend: BonsaiBackend = BonsaiBackend.AUTO, bonsaiBackendSelectionVisible: Boolean = false, arliAiModels: List<String> = emptyList(), arliAiModel: String = "", widthValidationError: UiText? = null, heightValidationError: UiText? = null, nsfw: Boolean = false, batchCount: Int = 1, hires: HiresConfig = HiresConfig.DISABLED, aDetailer: ADetailerConfig = ADetailerConfig.DISABLED, aDetailerAvailable: Boolean = false, aDetailerRefreshing: Boolean = false)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Converts the current img2img state into the domain generation request.
Link copied to clipboard
Executes the progressModal step in the SDAI presentation layer.
Link copied to clipboard
private fun ImageToImageState.toBenchmarkRequest(payload: ImageToImagePayload): LocalGenerationRequest
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>?, forgeModules: List<ForgeModule>?, aDetailerAvailable: Boolean?, arliAiModels: 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>?, forgeModules: List<ForgeModule>?, aDetailerAvailable: Boolean?, arliAiModels: List<String>?): ImageToImageState
Executes the withSource step in the SDAI presentation layer.