gen-cards: regenerate Use-it block
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ head (174 classes of *physical interactions* β put/lift/push/roll/cover/preten
|
|
| 37 |
<!-- gen-cards:use-it begin id=vjepa2-vitl-ssv2 (managed by scripts/gen-cards β edit cards.json / QuickStart.swift, not this block) -->
|
| 38 |
## Use it
|
| 39 |
|
| 40 |
-
**New to Core AI? [Start with CoreAIKit 0.7.
|
| 41 |
|
| 42 |
β‘ **One line** β this model is the default behind the kit's task op
|
| 43 |
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
|
@@ -46,13 +46,13 @@ head (174 classes of *physical interactions* β put/lift/push/roll/cover/preten
|
|
| 46 |
let actions = try await CoreAI.recognizeAction(videoAt: videoURL)
|
| 47 |
```
|
| 48 |
|
| 49 |
-
Every op, one shape β [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.7.
|
| 50 |
|
| 51 |
-
βΆοΈ **Run it (source)** β the [ActionCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.7.
|
| 52 |
(live camera action recognition, one app for every video model in the catalog):
|
| 53 |
|
| 54 |
```bash
|
| 55 |
-
git clone --branch 0.7.
|
| 56 |
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
|
| 57 |
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/ActionCamera/ActionCamera.xcodeproj
|
| 58 |
# β Run, then pick "V-JEPA 2 ViT-L (SSv2)" in the model picker
|
|
@@ -75,7 +75,7 @@ let actions = try await recognizer.classify(videoAt: videoURL, topK: 3)
|
|
| 75 |
// .probability; 174 SSv2 classes, fully on-device
|
| 76 |
```
|
| 77 |
|
| 78 |
-
The take-home is [`Examples/ActionCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.
|
| 79 |
β this exact code as one typed function, no UI; the CLI is an argument shell over it, and
|
| 80 |
the GUI classifies a rolling 16-frame clip from `CameraFeed`.
|
| 81 |
Live camera? Keep the last 16 `CameraFeed` frames and call `classify(frames:)` β other
|
|
@@ -84,7 +84,7 @@ clip (a hand pushing a block); point `--video` at real footage for real results.
|
|
| 84 |
|
| 85 |
**Integration checklist**
|
| 86 |
|
| 87 |
-
- SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.
|
| 88 |
- Info.plist: `NSCameraUsageDescription` β only for the live camera; the snippet needs none
|
| 89 |
- Entitlements: none needed
|
| 90 |
- First run downloads the model β ~708 MB (Mac) / ~710 MB (iPhone) β then it loads from the
|
|
|
|
| 37 |
<!-- gen-cards:use-it begin id=vjepa2-vitl-ssv2 (managed by scripts/gen-cards β edit cards.json / QuickStart.swift, not this block) -->
|
| 38 |
## Use it
|
| 39 |
|
| 40 |
+
**New to Core AI? [Start with CoreAIKit 0.7.3](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.7.3/Examples/ChatDemo). The README records the tested OS/SDK and download size; model and device coverage is stated per example.
|
| 41 |
|
| 42 |
β‘ **One line** β this model is the default behind the kit's task op
|
| 43 |
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
|
|
|
| 46 |
let actions = try await CoreAI.recognizeAction(videoAt: videoURL)
|
| 47 |
```
|
| 48 |
|
| 49 |
+
Every op, one shape β [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.7.3/docs/COOKBOOK.md).
|
| 50 |
|
| 51 |
+
βΆοΈ **Run it (source)** β the [ActionCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.7.3/Examples/ActionCamera)
|
| 52 |
(live camera action recognition, one app for every video model in the catalog):
|
| 53 |
|
| 54 |
```bash
|
| 55 |
+
git clone --branch 0.7.3 --depth 1 https://github.com/john-rocky/coreai-kit
|
| 56 |
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
|
| 57 |
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/ActionCamera/ActionCamera.xcodeproj
|
| 58 |
# β Run, then pick "V-JEPA 2 ViT-L (SSv2)" in the model picker
|
|
|
|
| 75 |
// .probability; 174 SSv2 classes, fully on-device
|
| 76 |
```
|
| 77 |
|
| 78 |
+
The take-home is [`Examples/ActionCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.3/Examples/ActionCamera/Sources/QuickStart.swift)
|
| 79 |
β this exact code as one typed function, no UI; the CLI is an argument shell over it, and
|
| 80 |
the GUI classifies a rolling 16-frame clip from `CameraFeed`.
|
| 81 |
Live camera? Keep the last 16 `CameraFeed` frames and call `classify(frames:)` β other
|
|
|
|
| 84 |
|
| 85 |
**Integration checklist**
|
| 86 |
|
| 87 |
+
- SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.3**) β product **CoreAIKitVision**
|
| 88 |
- Info.plist: `NSCameraUsageDescription` β only for the live camera; the snippet needs none
|
| 89 |
- Entitlements: none needed
|
| 90 |
- First run downloads the model β ~708 MB (Mac) / ~710 MB (iPhone) β then it loads from the
|