Skip to content

Commit 2ee3c0a

Browse files
marc0oloclaude
andcommitted
docs(rust/face-recognition): advertise run_recognition + icp canister logs for benchmarking
Logs are only captured for update calls; query call logs are not persisted on ICP. run_recognition (update) logs the instruction count; run_detection (query) does not. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eb1b2c5 commit 2ee3c0a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

rust/face-recognition/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ This example demonstrates running face detection and face recognition inside an
44

55
The example consists of two canisters:
66

7-
- **backend** — embeds the Tract ONNX inference engine. Exposes endpoints for uploading ONNX model files in chunks, loading them into memory, detecting faces, computing face embeddings, and recognizing people. Also includes `run_detection` and `run_recognition` endpoints that run the models against a built-in test image and log the instruction count — useful during development for capacity planning.
7+
- **backend** — embeds the Tract ONNX inference engine. Exposes endpoints for uploading ONNX model files in chunks, loading them into memory, detecting faces, computing face embeddings, and recognizing people. Also includes `run_detection` (query) and `run_recognition` (update) endpoints that run the models against a built-in test image — useful during development for capacity planning. Since query calls don't persist logs on ICP, only the update call produces a visible instruction count:
8+
9+
```bash
10+
icp canister call backend run_recognition '()'
11+
icp canister logs backend
12+
```
813
- **frontend** — serves the web UI (HTML/JS/CSS).
914

1015
## Models

0 commit comments

Comments
 (0)