pub struct ImageToImageGenerationRequest {
pub base: BaseGenerationRequest,
pub images: Vec<DynamicImage>,
pub resize_mode: Option<ResizeMode>,
pub mask: Option<DynamicImage>,
pub mask_blur: Option<u32>,
pub inpainting_fill_mode: Option<InpaintingFillMode>,
pub inpaint_full_resolution: bool,
pub inpaint_full_resolution_padding: Option<u32>,
pub inpainting_mask_invert: bool,
}Expand description
Parameters for an image-to-image generation.
Consider using the Default trait to fill in the parameters that you don’t need to fill in.
Fields§
§base: BaseGenerationRequestThe base parameters for this generation request.
images: Vec<DynamicImage>The images to alter.
resize_mode: Option<ResizeMode>How the image will be resized to match the generation resolution
mask: Option<DynamicImage>The mask to apply
mask_blur: Option<u32>The amount to blur the mask
inpainting_fill_mode: Option<InpaintingFillMode>How the area to be inpainted will be initialized
inpaint_full_resolution: boolWhether or not to inpaint at full resolution
inpaint_full_resolution_padding: Option<u32>The amount of padding to apply to the full-resolution padding
inpainting_mask_invert: boolBy default, the masked area is inpainted. If this is turned on, the unmasked area will be inpainted.
Trait Implementations§
Source§impl Clone for ImageToImageGenerationRequest
impl Clone for ImageToImageGenerationRequest
Source§fn clone(&self) -> ImageToImageGenerationRequest
fn clone(&self) -> ImageToImageGenerationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ImageToImageGenerationRequest
impl Default for ImageToImageGenerationRequest
Source§fn default() -> ImageToImageGenerationRequest
fn default() -> ImageToImageGenerationRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImageToImageGenerationRequest
impl RefUnwindSafe for ImageToImageGenerationRequest
impl Send for ImageToImageGenerationRequest
impl Sync for ImageToImageGenerationRequest
impl Unpin for ImageToImageGenerationRequest
impl UnwindSafe for ImageToImageGenerationRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().