ImageParams

Trait 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§