Trait sal_e_api::ImageParams

source ·
pub trait ImageParams: Debug + AsAny + Send + Sync + DynClone {
    // Required methods
    fn seed(&self) -> Option<i64>;
    fn steps(&self) -> Option<u32>;
    fn cfg(&self) -> Option<f32>;
    fn width(&self) -> Option<u32>;
    fn height(&self) -> Option<u32>;
    fn prompt(&self) -> Option<String>;
    fn negative_prompt(&self) -> Option<String>;
    fn denoising(&self) -> Option<f32>;
    fn model(&self) -> Option<String>;
    fn sampler(&self) -> Option<String>;
}
Expand description

Trait representing an interface to the parameters used to generate an image.

Required Methods§

source

fn seed(&self) -> Option<i64>

Returns the seed.

source

fn steps(&self) -> Option<u32>

Returns the number of steps.

source

fn cfg(&self) -> Option<f32>

Returns the CFG scale.

source

fn width(&self) -> Option<u32>

Returns the width.

source

fn height(&self) -> Option<u32>

Returns the height.

source

fn prompt(&self) -> Option<String>

Returns the prompt.

source

fn negative_prompt(&self) -> Option<String>

Returns the negative prompt.

source

fn denoising(&self) -> Option<f32>

Returns the denoising strength.

source

fn model(&self) -> Option<String>

Returns the model.

source

fn sampler(&self) -> Option<String>

Returns the sampler.

Implementations on Foreign Types§

source§

impl ImageParams for ImgInfo

source§

impl ImageParams for Prompt

Implementors§