mlboydaisuke commited on
Commit
5f87fe8
Β·
verified Β·
1 Parent(s): 4c95c9e

gen-cards: regenerate Use-it block

Browse files
Files changed (1) hide show
  1. README.md +13 -8
README.md CHANGED
@@ -36,6 +36,8 @@ 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
  ⚑ **One line** β€” this model is the default behind the kit's task op
40
  (`import CoreAIOps`; no session, no model plumbing, downloads on first use):
41
 
@@ -43,21 +45,24 @@ host post-processing is just a colormap.
43
  let map = try await CoreAI.estimateDepth(in: image)
44
  ```
45
 
46
- Every op, one shape β€” [Cookbook](https://github.com/john-rocky/coreai-kit/blob/main/docs/COOKBOOK.md).
47
 
48
- ▢️ **Run it (source)** β€” the [DepthCamera runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/DepthCamera)
49
  (live camera depth, one app for every depth model in the catalog):
50
 
51
  ```bash
52
- git clone https://github.com/john-rocky/coreai-kit
53
- open coreai-kit/Examples/DepthCamera/DepthCamera.xcodeproj
 
54
  # β†’ Run, then pick "Depth Anything 3 Small" in the model picker
55
 
56
  # agents / headless (macOS):
57
  cd coreai-kit/Examples/DepthCamera
58
- swift run depth-cli --model depth-anything-3-small --image sample.jpg --output depth.png
59
  ```
60
 
 
 
61
  πŸ’» **Build with it** β€” complete; the glue is kit API, copy-paste runs:
62
 
63
  ```swift
@@ -69,7 +74,7 @@ let depth = try await estimator.estimateDepth(for: image.cgImage)
69
  // depth: DepthMap β€” .cgImage() renders it, .values are the raw floats
70
  ```
71
 
72
- The take-home is [`Examples/DepthCamera/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/main/Examples/DepthCamera/Sources/QuickStart.swift)
73
  β€” this exact code as one typed function, no UI; the CLI is an argument shell over it, and
74
  the GUI runs the same estimator on every camera frame (`CameraFeed`, ~10 lines).
75
  Live camera? `CameraFeed` (kit API) streams frames β€” feed each one to
@@ -77,10 +82,10 @@ Live camera? `CameraFeed` (kit API) streams frames β€” feed each one to
77
 
78
  **Integration checklist**
79
 
80
- - SPM: `https://github.com/john-rocky/coreai-kit` β†’ product **CoreAIKitVision**
81
  - Info.plist: `NSCameraUsageDescription` β€” only for the live camera; the snippet needs none
82
  - Entitlements: none needed
83
- - First run downloads the model β€” 0.1 GB (Mac) / 0.1 GB (iPhone) β€” then it loads from the
84
  local cache (Application Support; progress via the `downloadProgress` callback)
85
  - Measure in Release β€” Debug is ~3Γ— slower on per-token host work
86
  <!-- 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.1](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.1/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):
43
 
 
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.1/docs/COOKBOOK.md).
49
 
50
+ ▢️ **Run it (source)** β€” the [DepthCamera runner](https://github.com/john-rocky/coreai-kit/tree/0.7.1/Examples/DepthCamera)
51
  (live camera depth, one app for every depth model in the catalog):
52
 
53
  ```bash
54
+ git clone --branch 0.7.1 --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
58
 
59
  # agents / headless (macOS):
60
  cd coreai-kit/Examples/DepthCamera
61
+ swift run -c release depth-cli --model depth-anything-3-small --image sample.jpg --output depth.png
62
  ```
63
 
64
+ Use Xcode build **27A266a** from the release's `.xcode-pin`; adjust the app path if your installation is named differently.
65
+
66
  πŸ’» **Build with it** β€” complete; the glue is kit API, copy-paste runs:
67
 
68
  ```swift
 
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.1/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.1**) β†’ 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 β€” ~54 MB (Mac) / ~54 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 -->