pub struct GenerationInfo {Show 21 fields
pub prompts: Vec<String>,
pub negative_prompts: Vec<String>,
pub seeds: Vec<i64>,
pub subseeds: Vec<i64>,
pub subseed_strength: f32,
pub width: u32,
pub height: u32,
pub sampler: Sampler,
pub steps: u32,
pub tiling: bool,
pub cfg_scale: f32,
pub denoising_strength: f32,
pub restore_faces: bool,
pub seed_resize_from_w: Option<u32>,
pub seed_resize_from_h: Option<u32>,
pub styles: Vec<String>,
pub clip_skip: usize,
pub face_restoration_model: Option<String>,
pub is_using_inpainting_conditioning: bool,
pub job_timestamp: DateTime<Local>,
pub model_hash: String,
}Expand description
The information associated with a generation.
Fields§
§prompts: Vec<String>The prompts used for each image in the generation.
negative_prompts: Vec<String>The negative prompt for each image in the generation.
seeds: Vec<i64>The seeds for the images; each seed corresponds to an image.
subseeds: Vec<i64>The subseeds for the images; each seed corresponds to an image.
subseed_strength: f32The strength of the subseed.
width: u32The width of the generated images.
height: u32The height of the generated images.
sampler: SamplerThe sampler that was used for this generation.
steps: u32The number of steps that were used for each generation.
tiling: boolWhether or not the image should be tiled at the edges
cfg_scale: f32The Classifier-Free Guidance scale; how strongly the prompt was applied to the generation
denoising_strength: f32The denoising strength
restore_faces: boolWhether or not the face restoration was applied
seed_resize_from_w: Option<u32>The width to resize the image from if reusing a seed with a different size
seed_resize_from_h: Option<u32>The height to resize the image from if reusing a seed with a different size
styles: Vec<String>Any styles applied to the generation
clip_skip: usizeCLIP rounds to skip
face_restoration_model: Option<String>Face restoration model in use
is_using_inpainting_conditioning: boolWhether or not inpainting conditioning is being used
job_timestamp: DateTime<Local>When the job was run
model_hash: StringThe hash of the model in use. Note that this is the short hash, not the long hash.
Trait Implementations§
Source§impl Clone for GenerationInfo
impl Clone for GenerationInfo
Source§fn clone(&self) -> GenerationInfo
fn clone(&self) -> GenerationInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for GenerationInfo
impl RefUnwindSafe for GenerationInfo
impl Send for GenerationInfo
impl Sync for GenerationInfo
impl Unpin for GenerationInfo
impl UnwindSafe for GenerationInfo
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
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>
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>
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 more