diff --git a/app/FastVLM App/ContentView.swift b/app/FastVLM App/ContentView.swift index 7bcf693..5cbdd2d 100644 --- a/app/FastVLM App/ContentView.swift +++ b/app/FastVLM App/ContentView.swift @@ -410,7 +410,7 @@ struct ContentView: View { // detach from the camera controller and feed to the video view await MainActor.run { self.framesToDisplay = nil - self.camera.detatch() + self.camera.detach() } framesToDisplayContinuation.finish() diff --git a/app/FastVLM/FastVLM.swift b/app/FastVLM/FastVLM.swift index 731b0ef..3c047b5 100644 --- a/app/FastVLM/FastVLM.swift +++ b/app/FastVLM/FastVLM.swift @@ -585,7 +585,7 @@ public struct FastVLMConfiguration: Codable, Sendable { public let vocabularySize: Int public let kvHeads: Int private let _maxPositionEmbeddings: Int? - public var maxpPositionEmbeddings: Int { _maxPositionEmbeddings ?? 32768 } + public var maxPositionEmbeddings: Int { _maxPositionEmbeddings ?? 32768 } private let _ropeTheta: Float? public var ropeTheta: Float { _ropeTheta ?? 1_000_000 } private let _ropeTraditional: Bool? diff --git a/app/Video/CameraController.swift b/app/Video/CameraController.swift index 9428361..b2a94e9 100644 --- a/app/Video/CameraController.swift +++ b/app/Video/CameraController.swift @@ -43,7 +43,7 @@ public class CameraController: NSObject { } } - public func detatch() { + public func detach() { sessionQueue.async { self.framesContinuation = nil }