in Diffusion/Common/State.swift [90:102]
func generate() async throws -> GenerationResult {
guard let pipeline = pipeline else { throw "No pipeline" }
return try pipeline.generate(
prompt: positivePrompt,
negativePrompt: negativePrompt,
scheduler: scheduler,
numInferenceSteps: Int(steps),
seed: seed,
numPreviews: Int(previews),
guidanceScale: Float(guidanceScale),
disableSafety: disableSafety
)
}