File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments