in Diffusion/Common/Pipeline/PipelineLoader.swift [117:133]
func prepare() async throws -> Pipeline {
do {
do {
try FileManager.default.createDirectory(atPath: PipelineLoader.models.path, withIntermediateDirectories: true, attributes: nil)
} catch {
print("Error creating PipelineLoader.models path: \(error)")
}
try await download()
try await unzip()
let pipeline = try await load(url: compiledURL)
return Pipeline(pipeline, maxSeed: maxSeed)
} catch {
state = .failed(error)
throw error
}
}