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 )