gen-cards: regenerate Use-it block
Browse files
README.md
CHANGED
|
@@ -36,7 +36,7 @@ host post-processing is just a colormap.
|
|
| 36 |
<!-- gen-cards:use-it begin id=depth-anything-3-small (managed by scripts/gen-cards β edit cards.json / QuickStart.swift, not this block) -->
|
| 37 |
## Use it
|
| 38 |
|
| 39 |
-
**New to Core AI? [Start with CoreAIKit 0.7.
|
| 40 |
|
| 41 |
β‘ **One line** β this model is the default behind the kit's task op
|
| 42 |
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
|
@@ -45,13 +45,13 @@ host post-processing is just a colormap.
|
|
| 45 |
let map = try await CoreAI.estimateDepth(in: image)
|
| 46 |
```
|
| 47 |
|
| 48 |
-
Every op, one shape β [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.7.
|
| 49 |
|
| 50 |
-
βΆοΈ **Run it (source)** β the [DepthCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.7.
|
| 51 |
(live camera depth, one app for every depth model in the catalog):
|
| 52 |
|
| 53 |
```bash
|
| 54 |
-
git clone --branch 0.7.
|
| 55 |
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
|
| 56 |
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/DepthCamera/DepthCamera.xcodeproj
|
| 57 |
# β Run, then pick "Depth Anything 3 Small" in the model picker
|
|
@@ -74,7 +74,7 @@ let depth = try await estimator.estimateDepth(for: image.cgImage)
|
|
| 74 |
// depth: DepthMap β .cgImage() renders it, .values are the raw floats
|
| 75 |
```
|
| 76 |
|
| 77 |
-
The take-home is [`Examples/DepthCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.
|
| 78 |
β this exact code as one typed function, no UI; the CLI is an argument shell over it, and
|
| 79 |
the GUI runs the same estimator on every camera frame (`CameraFeed`, ~10 lines).
|
| 80 |
Live camera? `CameraFeed` (kit API) streams frames β feed each one to
|
|
@@ -82,10 +82,10 @@ Live camera? `CameraFeed` (kit API) streams frames β feed each one to
|
|
| 82 |
|
| 83 |
**Integration checklist**
|
| 84 |
|
| 85 |
-
- SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.
|
| 86 |
- Info.plist: `NSCameraUsageDescription` β only for the live camera; the snippet needs none
|
| 87 |
- Entitlements: none needed
|
| 88 |
-
- First run downloads the model β ~
|
| 89 |
local cache (Application Support; progress via the `downloadProgress` callback)
|
| 90 |
- Measure in Release β Debug is ~3Γ slower on per-token host work
|
| 91 |
<!-- gen-cards:use-it end -->
|
|
|
|
| 36 |
<!-- gen-cards:use-it begin id=depth-anything-3-small (managed by scripts/gen-cards β edit cards.json / QuickStart.swift, not this block) -->
|
| 37 |
## Use it
|
| 38 |
|
| 39 |
+
**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.
|
| 40 |
|
| 41 |
β‘ **One line** β this model is the default behind the kit's task op
|
| 42 |
(`import CoreAIOps`; no session, no model plumbing, downloads on first use):
|
|
|
|
| 45 |
let map = try await CoreAI.estimateDepth(in: image)
|
| 46 |
```
|
| 47 |
|
| 48 |
+
Every op, one shape β [Cookbook](https://github.com/john-rocky/coreai-kit/blob/0.7.3/docs/COOKBOOK.md).
|
| 49 |
|
| 50 |
+
βΆοΈ **Run it (source)** β the [DepthCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.7.3/Examples/DepthCamera)
|
| 51 |
(live camera depth, one app for every depth model in the catalog):
|
| 52 |
|
| 53 |
```bash
|
| 54 |
+
git clone --branch 0.7.3 --depth 1 https://github.com/john-rocky/coreai-kit
|
| 55 |
export DEVELOPER_DIR=/Applications/Xcode-27.0.0-RC.app/Contents/Developer
|
| 56 |
open -a /Applications/Xcode-27.0.0-RC.app coreai-kit/Examples/DepthCamera/DepthCamera.xcodeproj
|
| 57 |
# β Run, then pick "Depth Anything 3 Small" in the model picker
|
|
|
|
| 74 |
// depth: DepthMap β .cgImage() renders it, .values are the raw floats
|
| 75 |
```
|
| 76 |
|
| 77 |
+
The take-home is [`Examples/DepthCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/0.7.3/Examples/DepthCamera/Sources/QuickStart.swift)
|
| 78 |
β this exact code as one typed function, no UI; the CLI is an argument shell over it, and
|
| 79 |
the GUI runs the same estimator on every camera frame (`CameraFeed`, ~10 lines).
|
| 80 |
Live camera? `CameraFeed` (kit API) streams frames β feed each one to
|
|
|
|
| 82 |
|
| 83 |
**Integration checklist**
|
| 84 |
|
| 85 |
+
- SPM: `https://github.com/john-rocky/coreai-kit` (exact **0.7.3**) β product **CoreAIKitVision**
|
| 86 |
- Info.plist: `NSCameraUsageDescription` β only for the live camera; the snippet needs none
|
| 87 |
- Entitlements: none needed
|
| 88 |
+
- First run downloads the model β ~55 MB (Mac) / ~55 MB (iPhone) β then it loads from the
|
| 89 |
local cache (Application Support; progress via the `downloadProgress` callback)
|
| 90 |
- Measure in Release β Debug is ~3Γ slower on per-token host work
|
| 91 |
<!-- gen-cards:use-it end -->
|