Deploy Home Pulse: grounded setup, isolated workspaces and shared HF visual inference
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +6 -35
- MEDIA-SOURCES.md +61 -0
- README.md +42 -9
- app.py +136 -95
- app_zerogpu.py +115 -0
- fig/10102107193.mp4 → media-library/clips/S01.mp4 +2 -2
- fig/10244479353.mp4 → media-library/clips/S02.mp4 +2 -2
- fig/eiffel_a.jpg → media-library/clips/S03.mp4 +2 -2
- fig/longgang_nightblur.png → media-library/clips/S04.mp4 +2 -2
- media-library/clips/S05.mp4 +3 -0
- fig/none.png → media-library/clips/S06.mp4 +2 -2
- media-library/clips/S07.mp4 +3 -0
- media-library/clips/S08.mp4 +3 -0
- media-library/clips/S09.mp4 +3 -0
- media-library/clips/S10.mp4 +3 -0
- media-library/clips/S11.mp4 +3 -0
- fig/onescorer.png → media-library/clips/S12.mp4 +2 -2
- media-library/clips/S13.mp4 +3 -0
- media-library/clips/S14.mp4 +3 -0
- fig/singapore_flyer_2.jpg → media-library/clips/S15.mp4 +2 -2
- media-library/clips/S16.mp4 +3 -0
- media-library/clips/S17.mp4 +3 -0
- media-library/clips/S18.mp4 +3 -0
- media-library/clips/S19.mp4 +3 -0
- media-library/clips/S20.mp4 +3 -0
- media-library/clips/S21.mp4 +3 -0
- media-library/clips/S22.mp4 +3 -0
- media-library/clips/S23.mp4 +3 -0
- media-library/clips/S24.mp4 +3 -0
- media-library/clips/S25.mp4 +3 -0
- media-library/clips/S26.mp4 +3 -0
- media-library/clips/S27.mp4 +3 -0
- media-library/clips/S28.mp4 +3 -0
- media-library/clips/S29.mp4 +3 -0
- media-library/clips/S30.mp4 +3 -0
- media-library/clips/S31.mp4 +3 -0
- media-library/clips/S32.mp4 +3 -0
- media-library/clips/S33.mp4 +3 -0
- media-library/clips/negative_01.mp4 +0 -0
- media-library/clips/negative_02.mp4 +0 -0
- media-library/clips/negative_03.mp4 +3 -0
- media-library/clips/negative_04.mp4 +3 -0
- media-library/clips/negative_05.mp4 +3 -0
- media-library/clips/negative_06.mp4 +3 -0
- media-library/clips/smartbench_0007.mp4 +3 -0
- media-library/clips/smartbench_0036.mp4 +3 -0
- media-library/clips/smartbench_0058.mp4 +3 -0
- media-library/clips/smartbench_0083.mp4 +3 -0
- media-library/clips/smartbench_0094.mp4 +3 -0
- media-library/clips/smartbench_0133.mp4 +3 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,6 @@
|
|
| 1 |
-
*.
|
| 2 |
-
*.
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
web/dist/media/posters/cat-active.jpg filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
web/dist/media/posters/pkg-arrive.jpg filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
web/dist/media/posters/pkg-taken.jpg filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
web/dist/media/posters/porch-empty.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MEDIA-SOURCES.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sample video sources
|
| 2 |
+
|
| 3 |
+
Short clips supplied for this household-observation evaluation. Source links are retained for attribution. Original videos and datasets have not been modified.
|
| 4 |
+
|
| 5 |
+
| Clip | Title | Source |
|
| 6 |
+
|---|---|---|
|
| 7 |
+
| smartbench_0133 | 宠物在客厅活动 | https://www.youtube.com/watch?v=jR4r4-sV5sU |
|
| 8 |
+
| smartbench_0880 | 空客厅后宠物进入 | https://www.youtube.com/watch?v=v5aU-eSFzK4 |
|
| 9 |
+
| smartbench_0036 | 人与宠物日常互动 | https://www.youtube.com/watch?v=c4BiMNV5dME |
|
| 10 |
+
| smartbench_0188 | 幼犬翻越围栏 | https://www.youtube.com/watch?v=uUsuo2hKqnQ |
|
| 11 |
+
| smartbench_0630 | 宠物撕咬纸巾 | https://www.youtube.com/watch?v=IAUXOVtZqNk |
|
| 12 |
+
| smartbench_0276 | 配送员放下包裹 | https://www.youtube.com/watch?v=_iV2anL2SKE |
|
| 13 |
+
| smartbench_0266 | 住户取走包裹 | https://www.youtube.com/watch?v=_xg3SH6qu1c |
|
| 14 |
+
| smartbench_0551 | 门口人员拆开包裹 | https://www.youtube.com/watch?v=EXEg6CfzW70 |
|
| 15 |
+
| smartbench_0216 | 住户离开后空门廊 | https://www.youtube.com/watch?v=OvBzOodJ31E |
|
| 16 |
+
| smartbench_0321 | 人与宠物回屋后空门廊 | https://www.youtube.com/watch?v=FuDb8E9G6q4 |
|
| 17 |
+
| smartbench_0083 | 夜间人员进入后院 | https://www.youtube.com/watch?v=yT7qfBXOGLw |
|
| 18 |
+
| smartbench_0094 | 夜间人员进入围栏庭院 | https://www.youtube.com/watch?v=ArFLLlLjfXw |
|
| 19 |
+
| smartbench_0007 | 熊进入后院翻垃圾桶 | https://www.youtube.com/watch?v=GfNH24LsSh8 |
|
| 20 |
+
| smartbench_0058 | 人与狗在院内活动 | https://www.youtube.com/watch?v=TnjOgP6IvU8 |
|
| 21 |
+
| smartbench_0290 | 后院鸟类在喂食器活动 | https://www.youtube.com/watch?v=XWCCEksks5U |
|
| 22 |
+
| smartbench_0643 | 住户回屋后空庭院门口 | https://www.youtube.com/watch?v=5Xy1MJ6hXKc |
|
| 23 |
+
| negative_01 | 沙发区无人活动_纸袋与箱子保持不变 | https://changedetection.net/dataset2014/ |
|
| 24 |
+
| negative_02 | 沙发区无人活动_箱子保持不变 | https://changedetection.net/dataset2014/ |
|
| 25 |
+
| negative_03 | 人和宠物回屋后空门廊 | https://www.youtube.com/watch?v=FuDb8E9G6q4 |
|
| 26 |
+
| negative_04 | 夜间人员离开后空庭院 | https://www.youtube.com/watch?v=ArFLLlLjfXw |
|
| 27 |
+
| negative_05 | 白天住户回屋后空庭院 | https://www.youtube.com/watch?v=5Xy1MJ6hXKc |
|
| 28 |
+
| negative_06 | 室外入口无人员_树影自然变化 | https://changedetection.net/dataset2014/ |
|
| 29 |
+
| S01 | 住户带包离家与门边钥匙动作 | https://www.youtube.com/watch?v=jNsO1K0mRwI |
|
| 30 |
+
| S02 | 住户带包靠近门并进屋 | https://www.youtube.com/watch?v=fyeQn4V8cHU |
|
| 31 |
+
| S03 | 孩子背书包离家_到家反例 | https://www.youtube.com/watch?v=z-TMWr0axSo |
|
| 32 |
+
| S04 | 放学儿童在门口交谈 | https://www.youtube.com/watch?v=CSM5AuDQzwc |
|
| 33 |
+
| S05 | 校车旁儿童回到门廊 | https://www.youtube.com/watch?v=X5sIOHuLyAw |
|
| 34 |
+
| S06 | 背书包儿童进入室内 | https://www.youtube.com/watch?v=-3yHkj7dPvA |
|
| 35 |
+
| S07 | 儿童入户后受惊跌倒_终态反例 | https://www.youtube.com/watch?v=-3yHkj7dPvA |
|
| 36 |
+
| S08 | 门廊清扫过程 | https://www.youtube.com/watch?v=sZ9ij4A0REg |
|
| 37 |
+
| S09 | 远处吸尘动作_微小目标无法确认 | https://www.youtube.com/watch?v=_Psi3NnuNiw |
|
| 38 |
+
| S10 | 宠物休息与扫地机器人活动 | https://www.youtube.com/watch?v=6xZVT_HphuM |
|
| 39 |
+
| S11 | 夜视猫进食并间歇抬头 | https://www.youtube.com/watch?v=17_N3EJXNwg |
|
| 40 |
+
| S12 | 猫在食盆旁抬头暂停_进食对照 | https://www.youtube.com/watch?v=17_N3EJXNwg |
|
| 41 |
+
| S13 | 两只猫在食盆附近互动 | https://www.youtube.com/watch?v=bK0HH-YZTQ4 |
|
| 42 |
+
| S14 | 松鼠翻动门口零食篮 | https://www.youtube.com/watch?v=M-R95X8bk94 |
|
| 43 |
+
| S15 | 狗咬鞋_与玩具区分 | https://www.youtube.com/watch?v=qPVd5EP6vRQ |
|
| 44 |
+
| S16 | 宠物贴近镜头造成遮挡 | https://www.youtube.com/watch?v=qPVd5EP6vRQ |
|
| 45 |
+
| S17 | 猫在玩具旁休息 | https://www.youtube.com/watch?v=nVkLviQSlcY |
|
| 46 |
+
| S18 | 猫贴镜头_视野与夜视切换 | https://www.youtube.com/watch?v=nVkLviQSlcY |
|
| 47 |
+
| S19 | 夜间蜘蛛靠近镜头 | https://www.youtube.com/watch?v=BiE85wTQvpE |
|
| 48 |
+
| S20 | 狗下桌后遮挡镜头 | https://www.youtube.com/watch?v=3AwEol8eZ0M |
|
| 49 |
+
| S21 | 院内晾衣被逐件收下 | https://www.youtube.com/watch?v=Kdefe5JM0xM |
|
| 50 |
+
| S22 | 乌龟推开庭院门后离开 | https://www.youtube.com/watch?v=lPfU3YZaCes |
|
| 51 |
+
| S23 | 宠物店监控_手部遮住微小乌龟 | https://www.youtube.com/watch?v=FPgvMrguuPs |
|
| 52 |
+
| S24 | 厨房窗户开关动作 | https://ai2-public-datasets.s3-us-west-2.amazonaws.com/charades/Charades_v1_480.zip |
|
| 53 |
+
| S25 | 逆光窗户动作与携包经过 | https://ai2-public-datasets.s3-us-west-2.amazonaws.com/charades/Charades_v1_480.zip |
|
| 54 |
+
| S26 | 收拾衣物与篮子 | https://ai2-public-datasets.s3-us-west-2.amazonaws.com/charades/Charades_v1_480.zip |
|
| 55 |
+
| S27 | 厨房扫地_局部视野 | https://ai2-public-datasets.s3-us-west-2.amazonaws.com/charades/Charades_v1_480.zip |
|
| 56 |
+
| S28 | 门边手部小物体_钥匙可观察性 | https://www.youtube.com/watch?v=jNsO1K0mRwI |
|
| 57 |
+
| S29 | 狗打开柜门并拉扯垃圾袋 | https://www.youtube.com/watch?v=-82STtPbfEc |
|
| 58 |
+
| S30 | 人员拿包裹时身体遮挡 | https://www.youtube.com/watch?v=Xl-R3YCQRkY |
|
| 59 |
+
| S31 | 离家后短暂返回门口 | https://www.youtube.com/watch?v=WRnhem3hsxc |
|
| 60 |
+
| S32 | 清理桌面并擦拭_表演采集 | https://ai2-public-datasets.s3-us-west-2.amazonaws.com/charades/Charades_v1_480.zip |
|
| 61 |
+
| S33 | 固定机位车库清扫 | https://ai2-public-datasets.s3-us-west-2.amazonaws.com/charades/Charades_v1_480.zip |
|
README.md
CHANGED
|
@@ -1,16 +1,49 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: green
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
-
pinned:
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Home Pulse
|
| 3 |
+
emoji: 🏡
|
| 4 |
colorFrom: green
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.30.0
|
| 8 |
+
python_version: 3.12
|
| 9 |
app_file: app.py
|
| 10 |
+
pinned: false
|
| 11 |
+
short_description: 用一句话设置家庭关注,确认对象,再交给视觉 AI 观察。
|
| 12 |
+
tags:
|
| 13 |
+
- zerogpu
|
| 14 |
+
- computer-vision
|
| 15 |
+
- smart-home
|
| 16 |
+
models:
|
| 17 |
+
- mohit67890/imajev-4b
|
| 18 |
+
- Qwen/Qwen3.5-4B
|
| 19 |
---
|
| 20 |
|
| 21 |
+
# Home Pulse
|
| 22 |
|
| 23 |
+
家的消息,刚刚好。
|
| 24 |
+
|
| 25 |
+
**说明需求 → 看图确认对象与范围 → 澄清触发条件 → jev 试观察 → 启用 → 记忆复用。**
|
| 26 |
+
|
| 27 |
+
This Space keeps the custom React interface and deterministic Node.js contract engine on free CPU hardware. Kimi handles user intent and visual grounding; visual decisions use the documented API of [the author's imajev Space](https://huggingface.co/spaces/mohit67890/imajev), running on HF ZeroGPU. The browser calls Gradio and the gateway forwards the visitor's `x-ip-token` to the model Space, following HF's cross-Space quota protocol. A short-lived authenticated loopback bridge connects visual responses to the rule engine.
|
| 28 |
+
|
| 29 |
+
## Run and configure
|
| 30 |
+
|
| 31 |
+
- `ANKER_KIMI_API_KEY`: server-side Space Secret for the competition Kimi API.
|
| 32 |
+
- Web hardware: **CPU Basic**. Visual backend: shared **ZeroGPU**. No paid hardware is requested.
|
| 33 |
+
- Open the direct `.hf.space` address to use the complete app on desktop or mobile browsers.
|
| 34 |
+
- Each browser has its own random workspace credential. Its memories, uploads, contracts and metrics are isolated from other visitors. Clearing browser storage also removes that browser's workspace credential.
|
| 35 |
+
- Free GPU allocation may queue and is subject to Hugging Face's visitor quota. Continuous observation runs while the observation page is open.
|
| 36 |
+
- Application data lives on the Space's temporary disk. Export important records before a rebuild; free Space storage is not a durable database.
|
| 37 |
+
- Task setup uses Kimi; images used for visual execution go to the HF Space. Secrets, local personal memories and local execution logs are excluded from the repository.
|
| 38 |
+
|
| 39 |
+
## Models and attribution
|
| 40 |
+
|
| 41 |
+
- [Imajev](https://github.com/mohit67890/imajev), by Mohit Garg, Apache-2.0. Only the required unmodified inference source is included under `upstream/`; its license is retained.
|
| 42 |
+
- [mohit67890/imajev-4b](https://huggingface.co/mohit67890/imajev-4b), adapter revision `f8d8234cebc6c99065c07731e59716dc0a6e27ab`.
|
| 43 |
+
- [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B), revision `851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a`, Apache-2.0.
|
| 44 |
+
- The shared model service manages its own model revision; requests enable its calibration and resize images to 640 pixels. It can update or be temporarily unavailable. Local NF4 results are not a claim about this hosted runtime.
|
| 45 |
+
- `app_zerogpu.py` and `requirements-zerogpu.txt` retain the separate own-GPU deployment option. That variant downloads the pinned revisions above from HF and uses BF16. It requires an account with ZeroGPU hosting access.
|
| 46 |
+
- Original model files are not modified or republished.
|
| 47 |
+
- Sample video source attribution is preserved in `media-library/说明与索引/完整素材索引.json` and `MEDIA-SOURCES.md`.
|
| 48 |
+
|
| 49 |
+
The app provides image/video observation, bounded rule execution, on-page notifications, memories and operational metrics. Hardware camera events and phone push notifications are not connected.
|
app.py
CHANGED
|
@@ -1,95 +1,136 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
import
|
| 4 |
-
import
|
| 5 |
-
import
|
| 6 |
-
import
|
| 7 |
-
import
|
| 8 |
-
|
| 9 |
-
import
|
| 10 |
-
import
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
from
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
from
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Home Pulse's React UI and Node contracts, with the public HF imajev GPU API."""
|
| 2 |
+
from gradio_client import Client
|
| 3 |
+
import atexit
|
| 4 |
+
import json
|
| 5 |
+
import os
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
import re
|
| 8 |
+
import secrets
|
| 9 |
+
import shutil
|
| 10 |
+
import subprocess
|
| 11 |
+
import threading
|
| 12 |
+
import base64
|
| 13 |
+
import io
|
| 14 |
+
import time
|
| 15 |
+
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
| 16 |
+
|
| 17 |
+
import gradio as gr
|
| 18 |
+
import httpx
|
| 19 |
+
from fastapi import Request
|
| 20 |
+
from fastapi.responses import HTMLResponse, JSONResponse, StreamingResponse
|
| 21 |
+
from fastapi.staticfiles import StaticFiles
|
| 22 |
+
from starlette.background import BackgroundTask
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
ROOT=Path(__file__).resolve().parent
|
| 26 |
+
DATA=Path(os.getenv('HOME_PULSE_DATA_DIR','/tmp/home-pulse'))
|
| 27 |
+
INTERNAL_KEY=secrets.token_hex(32)
|
| 28 |
+
NODE_PORT=int(os.getenv('HOME_PULSE_API_PORT','7861'))
|
| 29 |
+
PORT=int(os.getenv('PORT','7860'))
|
| 30 |
+
WORKSPACE=re.compile(r'^[a-f0-9]{64}$')
|
| 31 |
+
VISUAL=re.compile(r'^/api/(?:setup/trial|analyze|contracts/observe)$')
|
| 32 |
+
os.environ.setdefault('TOKENIZERS_PARALLELISM','false')
|
| 33 |
+
os.environ.setdefault('HF_HUB_DISABLE_IMPLICIT_TOKEN','1')
|
| 34 |
+
os.environ.setdefault('GRADIO_ANALYTICS_ENABLED','False')
|
| 35 |
+
os.environ.update(HOME_PULSE_DATA_DIR=str(DATA), HOME_PULSE_CLOUD='1', HOME_PULSE_INTERNAL_KEY=INTERNAL_KEY,
|
| 36 |
+
HOME_PULSE_MEDIA_ROOT=str(ROOT/'media-library'),HOME_PULSE_MODEL_URL=f'http://127.0.0.1:{PORT}/_model')
|
| 37 |
+
|
| 38 |
+
node=shutil.which('node')
|
| 39 |
+
if not node: raise RuntimeError('Node.js is unavailable')
|
| 40 |
+
node_process=subprocess.Popen([node,str(ROOT/'web/server-bundle.mjs')],cwd=ROOT/'web')
|
| 41 |
+
atexit.register(node_process.terminate)
|
| 42 |
+
|
| 43 |
+
REMOTE_SPACE=os.getenv('HOME_PULSE_REMOTE_SPACE','mohit67890/imajev')
|
| 44 |
+
app=gr.Server(title='Home Pulse',docs_url=None,redoc_url=None)
|
| 45 |
+
|
| 46 |
+
class ModelBridge(BaseHTTPRequestHandler):
|
| 47 |
+
def do_POST(self):
|
| 48 |
+
if self.path!='/v1/systemone' or self.headers.get('X-Bridge-Key')!=INTERNAL_KEY:
|
| 49 |
+
self.send_error(403);return
|
| 50 |
+
try:
|
| 51 |
+
length=int(self.headers.get('Content-Length','0'))
|
| 52 |
+
if not 0<length<=6*1024*1024: raise ValueError('Invalid request size')
|
| 53 |
+
payload=json.loads(self.rfile.read(length))
|
| 54 |
+
payload['calibrated']=True
|
| 55 |
+
from PIL import Image
|
| 56 |
+
resized=[]
|
| 57 |
+
for item in payload.get('images',[]):
|
| 58 |
+
with Image.open(io.BytesIO(base64.b64decode(item.split(',',1)[1],validate=True))) as original:
|
| 59 |
+
if original.width*original.height>16_000_000:raise ValueError('Image dimensions too large')
|
| 60 |
+
image=original.convert('RGB');image.thumbnail((640,640));data=io.BytesIO();image.save(data,format='JPEG',quality=90)
|
| 61 |
+
resized.append('data:image/jpeg;base64,'+base64.b64encode(data.getvalue()).decode())
|
| 62 |
+
payload['images']=resized
|
| 63 |
+
value=self.remote_client.predict(payload,api_name='/systemone')
|
| 64 |
+
body=json.dumps(value).encode();self.send_response(200)
|
| 65 |
+
except Exception as exc:
|
| 66 |
+
print('Visual request failed:',type(exc).__name__,str(exc)[:200],flush=True)
|
| 67 |
+
message='HF 免费 GPU 额度暂时用完,请在额度恢复后再观察。' if re.search('quota|exceeded',str(exc),re.I) else 'HF 视觉服务暂时未返回结果,请稍后重试。'
|
| 68 |
+
body=json.dumps({'error':message}).encode();self.send_response(503)
|
| 69 |
+
self.send_header('Content-Type','application/json');self.send_header('Content-Length',str(len(body)));self.end_headers();self.wfile.write(body)
|
| 70 |
+
def log_message(self,*args): pass
|
| 71 |
+
|
| 72 |
+
@app.api(name='visual',concurrency_limit=1,api_visibility='undocumented')
|
| 73 |
+
def visual(route:str,body:str,workspace:str,request:gr.Request)->dict:
|
| 74 |
+
if not VISUAL.fullmatch(route) or not WORKSPACE.fullmatch(workspace):
|
| 75 |
+
return {'status':400,'body':{'error':'观察请求无效'}}
|
| 76 |
+
if len(body.encode())>6*1024*1024:return {'status':413,'body':{'error':'画面过大'}}
|
| 77 |
+
# HF's documented cross-Space protocol preserves the visiting user's quota.
|
| 78 |
+
token=request.headers.get('x-ip-token','') if request else ''
|
| 79 |
+
remote=Client(REMOTE_SPACE,headers={'x-ip-token':token} if token else {},verbose=False)
|
| 80 |
+
class VisitorBridge(ModelBridge):
|
| 81 |
+
remote_client=remote
|
| 82 |
+
bridge=ThreadingHTTPServer(('127.0.0.1',0),VisitorBridge)
|
| 83 |
+
thread=threading.Thread(target=bridge.serve_forever,daemon=True);thread.start()
|
| 84 |
+
try:
|
| 85 |
+
with httpx.Client(trust_env=False,timeout=210) as client:
|
| 86 |
+
response=client.post(f'http://127.0.0.1:{NODE_PORT}'+route,content=body,headers={
|
| 87 |
+
'Content-Type':'application/json','X-Home-Pulse-Internal':INTERNAL_KEY,
|
| 88 |
+
'X-Home-Pulse-Workspace':workspace,'X-Home-Pulse-Vision-Port':str(bridge.server_port)})
|
| 89 |
+
return {'status':response.status_code,'body':response.json()}
|
| 90 |
+
finally:
|
| 91 |
+
bridge.shutdown();bridge.server_close()
|
| 92 |
+
|
| 93 |
+
@app.get('/_model/v1/models')
|
| 94 |
+
def models():
|
| 95 |
+
global model_health
|
| 96 |
+
if time.monotonic()-model_health[0]>45:
|
| 97 |
+
try:
|
| 98 |
+
info=httpx.get('https://huggingface.co/api/spaces/'+REMOTE_SPACE,timeout=5).json()
|
| 99 |
+
model_health=(time.monotonic(),info.get('runtime',{}).get('stage')=='RUNNING')
|
| 100 |
+
except Exception:model_health=(time.monotonic(),False)
|
| 101 |
+
if not model_health[1]:return JSONResponse({'error':'HF 视觉服务正在连接'},status_code=503)
|
| 102 |
+
return {'data':[{'id':'imajev-4b-hf-shared'}],'runtime':{'model':'imajev-4b-hf-shared','gpu':'HF ZeroGPU · 共享算力','memoryGiB':None,'quantization':'BF16 · 共享服务','maxImageSide':640}}
|
| 103 |
+
model_health=(0,False)
|
| 104 |
+
|
| 105 |
+
@app.api_route('/api/{path:path}',methods=['GET','POST'])
|
| 106 |
+
async def api_proxy(path:str,request:Request):
|
| 107 |
+
workspace=request.headers.get('x-home-pulse-workspace') or request.cookies.get('hp_workspace','')
|
| 108 |
+
if not WORKSPACE.fullmatch(workspace):return JSONResponse({'error':'请刷新页面,重新连接你的空间'},status_code=401)
|
| 109 |
+
if request.method=='POST' and VISUAL.fullmatch('/api/'+path):
|
| 110 |
+
return JSONResponse({'error':'请通过页面发起 GPU 观察'},status_code=400)
|
| 111 |
+
headers={k:v for k,v in request.headers.items() if k.lower() in ('content-type','content-length','range','x-file-name','origin','host')}
|
| 112 |
+
headers.update({'X-Home-Pulse-Internal':INTERNAL_KEY,'X-Home-Pulse-Workspace':workspace})
|
| 113 |
+
client=httpx.AsyncClient(trust_env=False,timeout=220)
|
| 114 |
+
try:
|
| 115 |
+
target=f'http://127.0.0.1:{NODE_PORT}/api/'+path+('?' + request.url.query if request.url.query else '')
|
| 116 |
+
outbound=client.build_request(request.method,target,headers=headers,content=request.stream())
|
| 117 |
+
response=await client.send(outbound,stream=True)
|
| 118 |
+
except Exception:
|
| 119 |
+
await client.aclose();return JSONResponse({'error':'空间连接暂时中断,请重试'},status_code=502)
|
| 120 |
+
async def close(): await response.aclose();await client.aclose()
|
| 121 |
+
kept={k:v for k,v in response.headers.items() if k.lower() in ('content-type','content-length','content-range','accept-ranges','cache-control','content-disposition')}
|
| 122 |
+
return StreamingResponse(response.aiter_raw(),status_code=response.status_code,headers=kept,background=BackgroundTask(close))
|
| 123 |
+
|
| 124 |
+
app.mount('/assets',StaticFiles(directory=ROOT/'web/dist/assets'),name='assets')
|
| 125 |
+
app.mount('/media',StaticFiles(directory=ROOT/'web/dist/media'),name='media')
|
| 126 |
+
html=(ROOT/'web/dist/index.html').read_text(encoding='utf-8').replace('<head>','<head><script>window.__HOME_PULSE_CLOUD__=true</script>')
|
| 127 |
+
async def page():return HTMLResponse(html,headers={'Cache-Control':'no-cache'})
|
| 128 |
+
for route in ('/','/home','/watches','/create','/memories','/events','/review','/insights','/privacy','/watch/{item_id}','/observe/{item_id}'):
|
| 129 |
+
app.add_api_route(route,page,methods=['GET'],include_in_schema=False)
|
| 130 |
+
@app.get('/favicon.svg')
|
| 131 |
+
def favicon():
|
| 132 |
+
from fastapi.responses import FileResponse
|
| 133 |
+
return FileResponse(ROOT/'web/dist/favicon.svg')
|
| 134 |
+
|
| 135 |
+
if __name__=='__main__':
|
| 136 |
+
app.launch(server_name='0.0.0.0',server_port=PORT,show_error=False)
|
app_zerogpu.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Home Pulse's React UI + Node contracts + Gradio/ZeroGPU visual execution."""
|
| 2 |
+
import spaces # Must precede torch and model imports for ZeroGPU CUDA emulation.
|
| 3 |
+
import atexit
|
| 4 |
+
import json
|
| 5 |
+
import os
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
import re
|
| 8 |
+
import secrets
|
| 9 |
+
import shutil
|
| 10 |
+
import subprocess
|
| 11 |
+
import threading
|
| 12 |
+
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
| 13 |
+
|
| 14 |
+
import gradio as gr
|
| 15 |
+
import httpx
|
| 16 |
+
from fastapi import Request
|
| 17 |
+
from fastapi.responses import HTMLResponse, JSONResponse, StreamingResponse
|
| 18 |
+
from fastapi.staticfiles import StaticFiles
|
| 19 |
+
from starlette.background import BackgroundTask
|
| 20 |
+
from model_runtime import load_model, predict
|
| 21 |
+
|
| 22 |
+
ROOT=Path(__file__).resolve().parent
|
| 23 |
+
DATA=Path(os.getenv('HOME_PULSE_DATA_DIR','/tmp/home-pulse'))
|
| 24 |
+
INTERNAL_KEY=secrets.token_hex(32)
|
| 25 |
+
NODE_PORT=int(os.getenv('HOME_PULSE_API_PORT','7861'))
|
| 26 |
+
PORT=int(os.getenv('PORT','7860'))
|
| 27 |
+
WORKSPACE=re.compile(r'^[a-f0-9]{64}$')
|
| 28 |
+
VISUAL=re.compile(r'^/api/(?:setup/trial|analyze|contracts/observe)$')
|
| 29 |
+
os.environ.setdefault('TOKENIZERS_PARALLELISM','false')
|
| 30 |
+
os.environ.setdefault('HF_HUB_DISABLE_IMPLICIT_TOKEN','1')
|
| 31 |
+
os.environ.setdefault('GRADIO_ANALYTICS_ENABLED','False')
|
| 32 |
+
os.environ.update(HOME_PULSE_DATA_DIR=str(DATA), HOME_PULSE_CLOUD='1', HOME_PULSE_INTERNAL_KEY=INTERNAL_KEY,
|
| 33 |
+
HOME_PULSE_MEDIA_ROOT=str(ROOT/'media-library'),HOME_PULSE_MODEL_URL=f'http://127.0.0.1:{PORT}/_model')
|
| 34 |
+
|
| 35 |
+
node=shutil.which('node')
|
| 36 |
+
if not node: raise RuntimeError('Node.js is unavailable')
|
| 37 |
+
node_process=subprocess.Popen([node,str(ROOT/'web/server-bundle.mjs')],cwd=ROOT/'web')
|
| 38 |
+
atexit.register(node_process.terminate)
|
| 39 |
+
|
| 40 |
+
backend,calibration=load_model()
|
| 41 |
+
app=gr.Server(title='Home Pulse',docs_url=None,redoc_url=None)
|
| 42 |
+
|
| 43 |
+
class ModelBridge(BaseHTTPRequestHandler):
|
| 44 |
+
def do_POST(self):
|
| 45 |
+
if self.path!='/v1/systemone' or self.headers.get('X-Bridge-Key')!=INTERNAL_KEY:
|
| 46 |
+
self.send_error(403);return
|
| 47 |
+
try:
|
| 48 |
+
length=int(self.headers.get('Content-Length','0'))
|
| 49 |
+
if not 0<length<=6*1024*1024: raise ValueError('Invalid request size')
|
| 50 |
+
value=predict(backend,calibration,json.loads(self.rfile.read(length)))
|
| 51 |
+
body=json.dumps(value).encode();self.send_response(200)
|
| 52 |
+
except Exception as exc:
|
| 53 |
+
print('Visual request failed:',type(exc).__name__,str(exc)[:200],flush=True)
|
| 54 |
+
body=json.dumps({'error':'视觉判断暂时未完成,请重试'}).encode();self.send_response(422)
|
| 55 |
+
self.send_header('Content-Type','application/json');self.send_header('Content-Length',str(len(body)));self.end_headers();self.wfile.write(body)
|
| 56 |
+
def log_message(self,*args): pass
|
| 57 |
+
|
| 58 |
+
def gpu_duration(route,body,workspace):
|
| 59 |
+
return 40 if route=='/api/setup/trial' else 12
|
| 60 |
+
|
| 61 |
+
@app.api(name='visual',concurrency_limit=1,api_visibility='undocumented')
|
| 62 |
+
@spaces.GPU(duration=gpu_duration)
|
| 63 |
+
def visual(route:str,body:str,workspace:str)->dict:
|
| 64 |
+
if not VISUAL.fullmatch(route) or not WORKSPACE.fullmatch(workspace):
|
| 65 |
+
return {'status':400,'body':{'error':'观察请求无效'}}
|
| 66 |
+
if len(body.encode())>6*1024*1024:return {'status':413,'body':{'error':'画面过大'}}
|
| 67 |
+
# This bridge lives inside the allocated GPU worker. The Node rule engine calls
|
| 68 |
+
# it synchronously while it checks the trial or advances a monitoring contract.
|
| 69 |
+
bridge=ThreadingHTTPServer(('127.0.0.1',0),ModelBridge)
|
| 70 |
+
thread=threading.Thread(target=bridge.serve_forever,daemon=True);thread.start()
|
| 71 |
+
try:
|
| 72 |
+
with httpx.Client(trust_env=False,timeout=115) as client:
|
| 73 |
+
response=client.post(f'http://127.0.0.1:{NODE_PORT}'+route,content=body,headers={
|
| 74 |
+
'Content-Type':'application/json','X-Home-Pulse-Internal':INTERNAL_KEY,
|
| 75 |
+
'X-Home-Pulse-Workspace':workspace,'X-Home-Pulse-Vision-Port':str(bridge.server_port)})
|
| 76 |
+
return {'status':response.status_code,'body':response.json()}
|
| 77 |
+
finally:
|
| 78 |
+
bridge.shutdown();bridge.server_close()
|
| 79 |
+
|
| 80 |
+
@app.get('/_model/v1/models')
|
| 81 |
+
def models():
|
| 82 |
+
return {'data':[{'id':backend.model}],'runtime':{'model':backend.model,'gpu':'HF ZeroGPU · 按需分配','memoryGiB':None,'quantization':'BF16','maxImageSide':640}}
|
| 83 |
+
|
| 84 |
+
@app.api_route('/api/{path:path}',methods=['GET','POST'])
|
| 85 |
+
async def api_proxy(path:str,request:Request):
|
| 86 |
+
workspace=request.headers.get('x-home-pulse-workspace') or request.cookies.get('hp_workspace','')
|
| 87 |
+
if not WORKSPACE.fullmatch(workspace):return JSONResponse({'error':'请刷新页面,重新连接你的空间'},status_code=401)
|
| 88 |
+
if request.method=='POST' and VISUAL.fullmatch('/api/'+path):
|
| 89 |
+
return JSONResponse({'error':'请通过页面发起 GPU 观察'},status_code=400)
|
| 90 |
+
headers={k:v for k,v in request.headers.items() if k.lower() in ('content-type','content-length','range','x-file-name','origin','host')}
|
| 91 |
+
headers.update({'X-Home-Pulse-Internal':INTERNAL_KEY,'X-Home-Pulse-Workspace':workspace})
|
| 92 |
+
client=httpx.AsyncClient(trust_env=False,timeout=220)
|
| 93 |
+
try:
|
| 94 |
+
target=f'http://127.0.0.1:{NODE_PORT}/api/'+path+('?' + request.url.query if request.url.query else '')
|
| 95 |
+
outbound=client.build_request(request.method,target,headers=headers,content=request.stream())
|
| 96 |
+
response=await client.send(outbound,stream=True)
|
| 97 |
+
except Exception:
|
| 98 |
+
await client.aclose();return JSONResponse({'error':'空间连接暂时中断,请重试'},status_code=502)
|
| 99 |
+
async def close(): await response.aclose();await client.aclose()
|
| 100 |
+
kept={k:v for k,v in response.headers.items() if k.lower() in ('content-type','content-length','content-range','accept-ranges','cache-control','content-disposition')}
|
| 101 |
+
return StreamingResponse(response.aiter_raw(),status_code=response.status_code,headers=kept,background=BackgroundTask(close))
|
| 102 |
+
|
| 103 |
+
app.mount('/assets',StaticFiles(directory=ROOT/'web/dist/assets'),name='assets')
|
| 104 |
+
app.mount('/media',StaticFiles(directory=ROOT/'web/dist/media'),name='media')
|
| 105 |
+
html=(ROOT/'web/dist/index.html').read_text(encoding='utf-8').replace('<head>','<head><script>window.__HOME_PULSE_CLOUD__=true</script>')
|
| 106 |
+
async def page():return HTMLResponse(html,headers={'Cache-Control':'no-cache'})
|
| 107 |
+
for route in ('/','/home','/watches','/create','/memories','/events','/review','/insights','/privacy','/watch/{item_id}','/observe/{item_id}'):
|
| 108 |
+
app.add_api_route(route,page,methods=['GET'],include_in_schema=False)
|
| 109 |
+
@app.get('/favicon.svg')
|
| 110 |
+
def favicon():
|
| 111 |
+
from fastapi.responses import FileResponse
|
| 112 |
+
return FileResponse(ROOT/'web/dist/favicon.svg')
|
| 113 |
+
|
| 114 |
+
if __name__=='__main__':
|
| 115 |
+
app.launch(server_name='0.0.0.0',server_port=PORT,show_error=False)
|
fig/10102107193.mp4 → media-library/clips/S01.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c011225e9859ee9301997f658b6ef254186c4617aeda8f27510491992a138cb4
|
| 3 |
+
size 4431305
|
fig/10244479353.mp4 → media-library/clips/S02.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1a4cc7124c1c10b3d7cda67163b50799cb6910552beba511702d88e072d416d
|
| 3 |
+
size 2468175
|
fig/eiffel_a.jpg → media-library/clips/S03.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:642764d1a6178c54d5b0e270b8e17a6ce5f66864b8a2267683f75012532c3ef0
|
| 3 |
+
size 3445934
|
fig/longgang_nightblur.png → media-library/clips/S04.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:caef889954f5c202287bc6241c54e6d0579c98b0ae33cd0e841ed592ffe57484
|
| 3 |
+
size 3033512
|
media-library/clips/S05.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e3b0927e29b937f362d318edc039140c32c97b5f2197ae74222027809a6e7a
|
| 3 |
+
size 7782483
|
fig/none.png → media-library/clips/S06.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33051945cea04a96f12a66c1a919cd664fd941bc33b53246254e0007391ee935
|
| 3 |
+
size 320723
|
media-library/clips/S07.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15e4666860a6dfc433cf230e21ae692197a811940c6d1a1f00f728db3833d3e5
|
| 3 |
+
size 2867089
|
media-library/clips/S08.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6583f1e22909aa4ac9570a65e9f6923f81d5e6d6b35869109f310c9983d7f37f
|
| 3 |
+
size 4094116
|
media-library/clips/S09.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51cbfe2e637f7418fabdd7a2ed825f027f5f34de54efc943af5faed173d135ec
|
| 3 |
+
size 4257452
|
media-library/clips/S10.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f9e6e8ca19b976a4b84262647314c17b61312a4fcf542eb921684b4eb74839b
|
| 3 |
+
size 16885712
|
media-library/clips/S11.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ee21c33e798333bcd43436f38da39f8a0a773131487ad9585e77311854716ff
|
| 3 |
+
size 2509003
|
fig/onescorer.png → media-library/clips/S12.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:003431be7a70d4f66324e4bff9b18e81fc9c8ccfa29c937d4080f8d824233068
|
| 3 |
+
size 666171
|
media-library/clips/S13.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:781f3430896c16fd03cb2c2735056f2eee65fc611c22c3f82935497554075876
|
| 3 |
+
size 3593305
|
media-library/clips/S14.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:908a45b1ab0b1156c5bd9d8f827b26d57a6a335296bb6c8d8b8eb8eaaf291d64
|
| 3 |
+
size 1666677
|
fig/singapore_flyer_2.jpg → media-library/clips/S15.mp4
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c0b85ed18e928fa5fe84abc083f8c3eb97a7f7ce1842697fe489bc1f5248ec1
|
| 3 |
+
size 939520
|
media-library/clips/S16.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e98bf467108fa1502b8a6fb916f0fe1a47c68b51f035f11753b5423cfa9b781a
|
| 3 |
+
size 1181814
|
media-library/clips/S17.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65f74beb2d80ea2c246d2407d6186f8c3f19ba06c125ebdffbd372a058e11422
|
| 3 |
+
size 602318
|
media-library/clips/S18.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:891f90f23e85afc00d79637bd52f8847407a4ae29cb1808c5c5aa16aa16e327c
|
| 3 |
+
size 3365441
|
media-library/clips/S19.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c3e8e84a9128391f12aeca8d5df3fdde7902ff95c6c65117ed8014bb9085296
|
| 3 |
+
size 1292660
|
media-library/clips/S20.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db22363ad8304458d586979e866763a5a218ca3ded62ea95087697fa4d561ac0
|
| 3 |
+
size 1399556
|
media-library/clips/S21.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:564bca14aae364c1675d336a2bbc774e2710d257a5c814aff7d1c5fd6ab5a026
|
| 3 |
+
size 8640133
|
media-library/clips/S22.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33873bb3eda06024d63db739c07a0828291767ac619f08fc086e2de957cd855a
|
| 3 |
+
size 16668998
|
media-library/clips/S23.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5569f6fc913791de712ab586343a38c14e35d2b1143e5f59693281a0bcbf1b7e
|
| 3 |
+
size 1642478
|
media-library/clips/S24.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:488febab0e48543d1f392f6ef190f45363651efc2e49c4e06896f63321374d52
|
| 3 |
+
size 1249496
|
media-library/clips/S25.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77957d3920bd0ce617946acfcbb1b2f1fac0bbae129e8354510b087c917055d5
|
| 3 |
+
size 1360843
|
media-library/clips/S26.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4477b4649ff4ada0ba39b27c81f296cf2f12b64b99715ffc379c3eebc24b8820
|
| 3 |
+
size 1214593
|
media-library/clips/S27.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a44680763f837410191ef618b7a3310ee7e178deb5d7372f4f621a43608dca33
|
| 3 |
+
size 1394804
|
media-library/clips/S28.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ef2fff976523439d25b1bf2592f42f9628fde955568bd5f876f6b734fd1324d
|
| 3 |
+
size 1942713
|
media-library/clips/S29.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42d548742da2a82971fc74e95bb56faf3d00490885b7d2c60120c2fc151de7c5
|
| 3 |
+
size 7069638
|
media-library/clips/S30.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f550a4980d685ab5af07dca3bcd15cc9afb376551e9f42d5797f5e700bd2bfb1
|
| 3 |
+
size 1898144
|
media-library/clips/S31.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f962b09ed65516dcc62b2e205680ee3771d6c38fae37d73e976d91ee01f80a2
|
| 3 |
+
size 2524105
|
media-library/clips/S32.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9487304f1cb3e3807b1c47dabbad80660779a91d17cb4e2caf750fe550014eb7
|
| 3 |
+
size 1940356
|
media-library/clips/S33.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9111bed3120b857c5fcdf83a27c9c88a5eae6640ff237cc8570da0cc2f0b0be
|
| 3 |
+
size 2837778
|
media-library/clips/negative_01.mp4
ADDED
|
Binary file (41.5 kB). View file
|
|
|
media-library/clips/negative_02.mp4
ADDED
|
Binary file (42.5 kB). View file
|
|
|
media-library/clips/negative_03.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54287efc54404ee33e984c91ed327d0bdad7cd3315d2d0c00c84e5132e5f3f20
|
| 3 |
+
size 215127
|
media-library/clips/negative_04.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:685150db6e5cfd396f82e116e9fcaa83a6bdde634dd271d95a3e818280200903
|
| 3 |
+
size 226630
|
media-library/clips/negative_05.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67a70ed4e1c7b343eca6af014cc4cbd1df4b32358def273e1db45c20e7908ee4
|
| 3 |
+
size 548387
|
media-library/clips/negative_06.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4c8f26b01b29f925346a4fb9e6a8850515488836dfb004b2233c7b8e2aedba5
|
| 3 |
+
size 581968
|
media-library/clips/smartbench_0007.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a674d025922cf7ee6714d1181d5a34105427261c9630c8601e8e33cc88adad6a
|
| 3 |
+
size 3861778
|
media-library/clips/smartbench_0036.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:557055b2fdc060a59396eb02fabf676beac72ac5e9f19785683a5190c89d3dc8
|
| 3 |
+
size 1009363
|
media-library/clips/smartbench_0058.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:514dafc4deb7e95f72dca3906238e362c3c4ff50278ec17877c00979d1563495
|
| 3 |
+
size 2553060
|
media-library/clips/smartbench_0083.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d987545482e4807ad9d7a9e1a663d62e2acac8eb6625e9aefaf4012f163e0a0
|
| 3 |
+
size 870997
|
media-library/clips/smartbench_0094.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffe719eef43291401f810c6d9fd0c6fc3956b7148ae85ace8d9ab87ba8b115cd
|
| 3 |
+
size 715787
|
media-library/clips/smartbench_0133.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b80c6f6c21bd55830fbce317f49cb383de4b755710826400c8128ec1125ad9f6
|
| 3 |
+
size 1827868
|