Skip to content

Commit 407312b

Browse files
committed
end to end with new storage (blur hash not generating properly)
1 parent 60b3c89 commit 407312b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/MapleDiffusion/MapleDiffusion.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public class MapleDiffusion : ObservableObject {
114114
modelFolder mf : URL? = Bundle.main.url(forResource: "bins", withExtension: nil)) {
115115
// set global folder
116116
modelFolder = mf
117-
try? loadModel(saveMemoryButBeSlower: saveMemoryButBeSlower)
117+
// try? loadModel(saveMemoryButBeSlower: saveMemoryButBeSlower)
118118
}
119119

120120
func updateState(_ newState:GeneratorState) {
@@ -125,10 +125,8 @@ public class MapleDiffusion : ObservableObject {
125125
}
126126
}
127127

128-
129-
130-
131-
func loadModel(saveMemoryButBeSlower: Bool = true) throws {
128+
/// Loads the model in a Task, but can still be heavy, probably due to the MPS stuff
129+
public func loadModel(saveMemoryButBeSlower: Bool = true) throws {
132130

133131
Task {
134132
var progress = ProgressMonitor(total: 11)

0 commit comments

Comments
 (0)