Struct stable_diffusion_api::ImgInfo
source · pub struct ImgInfo {Show 31 fields
pub prompt: Option<String>,
pub all_prompts: Option<Vec<String>>,
pub negative_prompt: Option<String>,
pub all_negative_prompts: Option<Vec<String>>,
pub seed: Option<i64>,
pub all_seeds: Option<Vec<i64>>,
pub subseed: Option<i64>,
pub all_subseeds: Option<Vec<i64>>,
pub subseed_strength: Option<u32>,
pub width: Option<i32>,
pub height: Option<i32>,
pub sampler_name: Option<String>,
pub cfg_scale: Option<f64>,
pub steps: Option<u32>,
pub batch_size: Option<u32>,
pub restore_faces: Option<bool>,
pub face_restoration_model: Option<Value>,
pub sd_model_name: Option<String>,
pub sd_model_hash: Option<String>,
pub sd_vae_name: Option<String>,
pub sd_vae_hash: Option<String>,
pub seed_resize_from_w: Option<i32>,
pub seed_resize_from_h: Option<i32>,
pub denoising_strength: Option<f64>,
pub extra_generation_params: Option<ExtraGenParams>,
pub index_of_first_image: Option<u32>,
pub infotexts: Option<Vec<String>>,
pub styles: Option<Vec<String>>,
pub job_timestamp: Option<String>,
pub clip_skip: Option<u32>,
pub is_using_inpainting_conditioning: Option<bool>,
}
Expand description
Information about the generated images.
Fields§
§prompt: Option<String>
The prompt used when generating the image.
all_prompts: Option<Vec<String>>
A vector of all the prompts used for image generation.
negative_prompt: Option<String>
The negative prompt used when generating the image.
all_negative_prompts: Option<Vec<String>>
A vector of all negative prompts used when generating the image.
seed: Option<i64>
The random seed used for image generation.
all_seeds: Option<Vec<i64>>
A vector of all the random seeds used for image generation.
subseed: Option<i64>
The subseed used when generating the image.
all_subseeds: Option<Vec<i64>>
A vector of all the subseeds used for image generation.
subseed_strength: Option<u32>
The strength of the subseed used when generating the image.
width: Option<i32>
The width of the generated image.
height: Option<i32>
The height of the generated image.
sampler_name: Option<String>
The name of the sampler used for image generation.
cfg_scale: Option<f64>
The cfg scale factor used when generating the image.
steps: Option<u32>
The number of steps taken when generating the image.
batch_size: Option<u32>
The number of images generated in one batch.
restore_faces: Option<bool>
Whether or not face restoration was used.
face_restoration_model: Option<Value>
The face restoration model used when generating the image.
sd_model_name: Option<String>
The name of the sd model used when generating the image.
sd_model_hash: Option<String>
The hash of the sd model used for image generation.
sd_vae_name: Option<String>
The name of the VAE used when generating the image.
sd_vae_hash: Option<String>
The hash of the VAE used for image generation.
seed_resize_from_w: Option<i32>
The width used when resizing the image seed.
seed_resize_from_h: Option<i32>
The height used when resizing the image seed.
denoising_strength: Option<f64>
The strength of the denoising applied during image generation.
extra_generation_params: Option<ExtraGenParams>
Extra parameters passed for image generation.
index_of_first_image: Option<u32>
The index of the first image.
infotexts: Option<Vec<String>>
A vector of information texts about the generated images.
styles: Option<Vec<String>>
A vector of the styles used for image generation.
job_timestamp: Option<String>
The timestamp of when the job was started.
clip_skip: Option<u32>
The number of clip layers skipped during image generation.
is_using_inpainting_conditioning: Option<bool>
Whether or not inpainting conditioning was used for image generation.