Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/FastVLM App/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion app/FastVLM/FastVLM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion app/Video/CameraController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class CameraController: NSObject {
}
}

public func detatch() {
public func detach() {
sessionQueue.async {
self.framesContinuation = nil
}
Expand Down