From f816ed816f7a1ec9bf5f99485e5736ec331b2cdc Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Wed, 28 Dec 2022 20:49:59 +0100 Subject: [PATCH] Report actual number of steps. --- swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift b/swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift index 7e54b91..68d676d 100644 --- a/swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift +++ b/swift/StableDiffusion/pipeline/StableDiffusionPipeline.swift @@ -219,7 +219,7 @@ public struct StableDiffusionPipeline: ResourceManaging { pipeline: self, prompt: prompt, step: step, - stepCount: stepCount, + stepCount: timeSteps.count, currentLatentSamples: latents, isSafetyEnabled: canSafetyCheck && !disableSafety )