pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("invalid configuration: {0}")]
Config(String),
#[error("backend failed to generate image: {0}")]
Backend(String),
#[error("scorer failed: {0}")]
Scorer(String),
#[error("no candidates were produced")]
Empty,
}