gen-cards: Use-it block for CoreAIKit 0.8.0, the same block as on mlboydaisuke/VJEPA2-ViTL-SSv2-CoreAI; the iPhone download figure becomes ~708 MB, the size of ios/ (the JIT .aimodel; the h18p ahead-of-time files are in ios-h18p/)
Browse files
README.md
CHANGED
|
@@ -39,7 +39,7 @@ head (174 classes of *physical interactions* β put/lift/push/roll/cover/preten
|
|
| 39 |
<!-- gen-cards:use-it begin id=vjepa2-vitl-ssv2 (managed by scripts/gen-cards β edit cards.json / QuickStart.swift, not this block) -->
|
| 40 |
## Use it
|
| 41 |
|
| 42 |
-
**New to Core AI? [Start with CoreAIKit 0.
|
| 43 |
|
| 44 |
β‘ **One line** β this model is the default behind the kit's task op
|
| 45 |
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
|
@@ -48,13 +48,13 @@ head (174 classes of *physical interactions* β put/lift/push/roll/cover/preten
|
|
| 48 |
let actions = try await CoreAI.recognizeAction(videoAt: videoURL)
|
| 49 |
```
|
| 50 |
|
| 51 |
-
Every op, one shape β [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.
|
| 52 |
|
| 53 |
-
βΆοΈ **Run it (source)** β the [ActionCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.
|
| 54 |
(live camera action recognition, one app for every video model in the catalog):
|
| 55 |
|
| 56 |
```bash
|
| 57 |
-
git clone --branch 0.
|
| 58 |
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
|
| 59 |
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/ActionCamera/ActionCamera.xcodeproj
|
| 60 |
# β Run, then pick "V-JEPA 2 ViT-L (SSv2)" in the model picker
|
|
@@ -77,7 +77,7 @@ let actions = try await recognizer.classify(videoAt: videoURL, topK: 3)
|
|
| 77 |
// .probability; 174 SSv2 classes, fully on-device
|
| 78 |
```
|
| 79 |
|
| 80 |
-
The take-home is [`Examples/ActionCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.
|
| 81 |
β this exact code as one typed function, no UI; the CLI is an argument shell over it, and
|
| 82 |
the GUI classifies a rolling 16-frame clip from `CameraFeed`.
|
| 83 |
Live camera? Keep the last 16 `CameraFeed` frames and call `classify(frames:)` β other
|
|
@@ -86,10 +86,10 @@ clip (a hand pushing a block); point `--video` at real footage for real results.
|
|
| 86 |
|
| 87 |
**Integration checklist**
|
| 88 |
|
| 89 |
-
- SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.
|
| 90 |
- Info.plist: `NSCameraUsageDescription` β only for the live camera; the snippet needs none
|
| 91 |
- Entitlements: none needed
|
| 92 |
-
- First run downloads the model β ~708 MB (Mac) / ~
|
| 93 |
local cache (Application Support; progress via the `downloadProgress` callback)
|
| 94 |
- Measure in Release β Debug is ~3Γ slower on per-token host work
|
| 95 |
<!-- gen-cards:use-it end -->
|
|
|
|
| 39 |
<!-- gen-cards:use-it begin id=vjepa2-vitl-ssv2 (managed by scripts/gen-cards β edit cards.json / QuickStart.swift, not this block) -->
|
| 40 |
## Use it
|
| 41 |
|
| 42 |
+
**New to Core AI? [Start with CoreAIKit 0.8.0](https://github.com/john-rocky/coreai-kit#readme).** Follow its requirements and first-run steps for `qwen3-0.6b`, then open the same release's [ChatDemo](https://github.com/john-rocky/coreai-kit/tree/0.8.0/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
|
| 43 |
|
| 44 |
β‘ **One line** β this model is the default behind the kit's task op
|
| 45 |
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
|
|
|
| 48 |
let actions = try await CoreAI.recognizeAction(videoAt: videoURL)
|
| 49 |
```
|
| 50 |
|
| 51 |
+
Every op, one shape β [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.8.0/docs/COOKBOOK.md).
|
| 52 |
|
| 53 |
+
βΆοΈ **Run it (source)** β the [ActionCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.8.0/Examples/ActionCamera)
|
| 54 |
(live camera action recognition, one app for every video model in the catalog):
|
| 55 |
|
| 56 |
```bash
|
| 57 |
+
git clone --branch 0.8.0 --depth 1 https://github.com/john-rocky/coreai-kit
|
| 58 |
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
|
| 59 |
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/ActionCamera/ActionCamera.xcodeproj
|
| 60 |
# β Run, then pick "V-JEPA 2 ViT-L (SSv2)" in the model picker
|
|
|
|
| 77 |
// .probability; 174 SSv2 classes, fully on-device
|
| 78 |
```
|
| 79 |
|
| 80 |
+
The take-home is [`Examples/ActionCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.8.0/Examples/ActionCamera/Sources/QuickStart.swift)
|
| 81 |
β this exact code as one typed function, no UI; the CLI is an argument shell over it, and
|
| 82 |
the GUI classifies a rolling 16-frame clip from `CameraFeed`.
|
| 83 |
Live camera? Keep the last 16 `CameraFeed` frames and call `classify(frames:)` β other
|
|
|
|
| 86 |
|
| 87 |
**Integration checklist**
|
| 88 |
|
| 89 |
+
- SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.8.0**) β product **CoreAIKitVision**
|
| 90 |
- Info.plist: `NSCameraUsageDescription` β only for the live camera; the snippet needs none
|
| 91 |
- Entitlements: none needed
|
| 92 |
+
- First run downloads the model β ~708 MB (Mac) / ~708 MB (iPhone) β then it loads from the
|
| 93 |
local cache (Application Support; progress via the `downloadProgress` callback)
|
| 94 |
- Measure in Release β Debug is ~3Γ slower on per-token host work
|
| 95 |
<!-- gen-cards:use-it end -->
|