We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46bc8fc commit 6465630Copy full SHA for 6465630
Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift
@@ -8,6 +8,9 @@
8
import Foundation
9
import StableDiffusion
10
import CoreML
11
+import OSLog
12
+
13
+private let logger = Logger(subsystem: "CoreML Stable diffusion", category: "GenerativeManager")
14
15
/// The manager for generating images
16
@available(iOS 16.2, macOS 13.1, *)
@@ -38,7 +41,7 @@ public actor GenerativeManager: IGenerativeManager{
38
41
{
39
42
try pipeline.generateImages(configuration: config) { progress in
40
43
#if DEBUG
- print(progress.step)
44
+ logger.info("Progress step: \(progress.step)")
45
#endif
46
return !Task.isCancelled
47
}
0 commit comments