loveaa commited on
Commit
90d354b
·
verified ·
1 Parent(s): 460d377

Deploy Home Pulse: grounded setup, isolated workspaces and shared HF visual inference

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -35
  2. MEDIA-SOURCES.md +61 -0
  3. README.md +42 -9
  4. app.py +136 -95
  5. app_zerogpu.py +115 -0
  6. fig/10102107193.mp4 → media-library/clips/S01.mp4 +2 -2
  7. fig/10244479353.mp4 → media-library/clips/S02.mp4 +2 -2
  8. fig/eiffel_a.jpg → media-library/clips/S03.mp4 +2 -2
  9. fig/longgang_nightblur.png → media-library/clips/S04.mp4 +2 -2
  10. media-library/clips/S05.mp4 +3 -0
  11. fig/none.png → media-library/clips/S06.mp4 +2 -2
  12. media-library/clips/S07.mp4 +3 -0
  13. media-library/clips/S08.mp4 +3 -0
  14. media-library/clips/S09.mp4 +3 -0
  15. media-library/clips/S10.mp4 +3 -0
  16. media-library/clips/S11.mp4 +3 -0
  17. fig/onescorer.png → media-library/clips/S12.mp4 +2 -2
  18. media-library/clips/S13.mp4 +3 -0
  19. media-library/clips/S14.mp4 +3 -0
  20. fig/singapore_flyer_2.jpg → media-library/clips/S15.mp4 +2 -2
  21. media-library/clips/S16.mp4 +3 -0
  22. media-library/clips/S17.mp4 +3 -0
  23. media-library/clips/S18.mp4 +3 -0
  24. media-library/clips/S19.mp4 +3 -0
  25. media-library/clips/S20.mp4 +3 -0
  26. media-library/clips/S21.mp4 +3 -0
  27. media-library/clips/S22.mp4 +3 -0
  28. media-library/clips/S23.mp4 +3 -0
  29. media-library/clips/S24.mp4 +3 -0
  30. media-library/clips/S25.mp4 +3 -0
  31. media-library/clips/S26.mp4 +3 -0
  32. media-library/clips/S27.mp4 +3 -0
  33. media-library/clips/S28.mp4 +3 -0
  34. media-library/clips/S29.mp4 +3 -0
  35. media-library/clips/S30.mp4 +3 -0
  36. media-library/clips/S31.mp4 +3 -0
  37. media-library/clips/S32.mp4 +3 -0
  38. media-library/clips/S33.mp4 +3 -0
  39. media-library/clips/negative_01.mp4 +0 -0
  40. media-library/clips/negative_02.mp4 +0 -0
  41. media-library/clips/negative_03.mp4 +3 -0
  42. media-library/clips/negative_04.mp4 +3 -0
  43. media-library/clips/negative_05.mp4 +3 -0
  44. media-library/clips/negative_06.mp4 +3 -0
  45. media-library/clips/smartbench_0007.mp4 +3 -0
  46. media-library/clips/smartbench_0036.mp4 +3 -0
  47. media-library/clips/smartbench_0058.mp4 +3 -0
  48. media-library/clips/smartbench_0083.mp4 +3 -0
  49. media-library/clips/smartbench_0094.mp4 +3 -0
  50. media-library/clips/smartbench_0133.mp4 +3 -0
.gitattributes CHANGED
@@ -1,35 +1,6 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
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: OneAlign (Visual Quality/Aesthetic Scorer)
3
- emoji: ⚖️
4
  colorFrom: green
5
- colorTo: red
6
  sdk: gradio
7
- sdk_version: 4.12.0
 
8
  app_file: app.py
9
- pinned: true
10
- license: mit
11
- python_version: 3.10.14
 
 
 
 
 
 
12
  ---
13
 
14
- arxiv.org/abs/2312.17090
15
 
16
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
- import gradio as gr
2
-
3
- import argparse
4
- import datetime
5
- import json
6
- import os
7
- import time
8
-
9
- import gradio as gr
10
- import requests
11
- from PIL import Image
12
-
13
- from q_align.model.builder import load_pretrained_model
14
-
15
- from q_align.conversation import (default_conversation, conv_templates,
16
- SeparatorStyle)
17
- from q_align.constants import LOGDIR
18
- from q_align.utils import (build_logger, server_error_msg,
19
- violates_moderation, moderation_msg)
20
-
21
- from q_align.evaluate.scorer import QAlignScorer, QAlignAestheticScorer, QAlignVideoScorer
22
-
23
- import gradio as gr
24
-
25
- def load_video(video_file):
26
- from decord import VideoReader
27
- vr = VideoReader(video_file)
28
-
29
- # Get video frame rate
30
- fps = vr.get_avg_fps()
31
-
32
- # Calculate frame indices for 1fps
33
- frame_indices = [int(fps * i) for i in range(int(len(vr) / fps))]
34
- frames = vr.get_batch(frame_indices).asnumpy()
35
- return [Image.fromarray(frames[i]) for i in range(int(len(vr) / fps))]
36
-
37
-
38
- pretrained="q-future/one-align"
39
- device="cuda:0"
40
- tokenizer, model, image_processor, _ = load_pretrained_model(pretrained, None, "mplug_owl2", device=device)
41
-
42
- iqa_scorer = QAlignScorer(tokenizer=tokenizer, model=model, image_processor=image_processor)
43
- iaa_scorer = QAlignAestheticScorer(tokenizer=tokenizer, model=model, image_processor=image_processor)
44
- vqa_scorer = QAlignVideoScorer(tokenizer=tokenizer, model=model, image_processor=image_processor)
45
-
46
- scorers = {"Image Aesthetics (IAA)": iaa_scorer, "Image Quality (IQA)": iqa_scorer, "Video Quality (VQA)": vqa_scorer}
47
-
48
- LEVELS = ["excellent (5)", "good (4)", "fair (3)", "poor (2)", "bad (1)"]
49
- scores = [5,4,3,2,1]
50
- def image_classifier(input_img, input_vid, scorer_type):
51
- if scorer_type is None:
52
- scorer_type = "Image Quality (IQA)"
53
- this_scorer = scorers[scorer_type]
54
- if input_vid is not None:
55
- input_ = load_video(input_vid)
56
- elif input_img is not None:
57
- input_ = [input_img]
58
- if "Video" in scorer_type:
59
- input_ = [input_]
60
- probs = this_scorer(input_).mean(0).tolist()
61
- prob_dict = {LEVEL: prob for LEVEL, prob in zip(LEVELS, probs)}
62
- score = sum([prob * score for score, prob in zip(scores, probs)])
63
- return prob_dict, score
64
-
65
- title_markdown = ("""
66
-
67
- <div style="width: 100%; text-align: center; margin:auto;">
68
- <img style="width: 100%" src="https://raw.githubusercontent.com/Q-Future/Q-Align/main/fig/onescorer.png">
69
- </div>
70
-
71
- <h4 align="center"> If you like the OneScorer, please give us a star ✨ on <a href='https://github.com/Q-Future/Q-Align'>[GitHub]</a> for latest update. </h4>
72
-
73
- <h5 align="center">
74
- <div style="display:flex; gap: 0.25rem;" align="center">
75
- <a href='https://q-align.github.io'><img src='https://img.shields.io/badge/Homepage-green'></a>
76
- <a href='https://github.com/Q-Future/Q-Align'><img src='https://img.shields.io/badge/Github-Code-blue'></a>
77
- <a href="https://Q-Future.github.io/Q-Align/fig/Q_Align_v0_1_preview.pdf"><img src="https://img.shields.io/badge/Technical-Report-red"></a>
78
- <a href='https://github.com/Q-Future/Q-Align/stargazers'><img src='https://img.shields.io/github/stars/Q-Future/Q-Align.svg?style=social'></a>
79
- </div>
80
- </h5>
81
-
82
- """)
83
-
84
-
85
- input_img = gr.Image(type='pil', label="Upload an Image")
86
- input_vid = gr.Video(label="Upload a Video (will INGORE the image if a video is uploaded)",sources=["upload"])
87
- radio = gr.Radio(["Image Aesthetics (IAA)", "Image Quality (IQA)", "Video Quality (VQA)"], label="Task", info="Which Scorer will you need?")
88
-
89
- input_img = gr.Image(type='pil', label="Upload an Image")
90
-
91
- labels = gr.Label(label="Probabilities of rating levels:")
92
- number = gr.Number(label="Output score:", info="Range in [1,5]. Higher is better.", precision=4)
93
- demo = gr.Interface(fn=image_classifier, inputs=[input_img, input_vid, radio], outputs=[labels, number], description=title_markdown, examples=[["fig/eiffel_a.jpg", None, "Image Aesthetics (IAA)"], ["fig/singapore_flyer_2.jpg", None, "Image Quality (IQA)"], ["fig/none.png", "fig/10244479353.mp4", "Video Quality (VQA)"]], article="This is the Scorer Demo as Proposed by Paper: 'Q-Align: Teaching LMMs for Visual Scoring via Discrete Text-Defined Levels'. The proposed Q-Align achieves state-of-the-art performance on image quality assessment (IQA), image aesthetic assessment (IAA), as well as video quality assessment (VQA) tasks under the original LMM structure. With the syllabus, we further unify the three tasks into one model, termed the **OneAlign**, to which the demo corresponds.")
94
- demo.launch()
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:0139566e1e3ed9f452472cd444236f745e3dcce99b0648fb01d9a8835af25ef9
3
- size 1072646
 
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:154e74795d12bf904091cdc7479f997865dd6339c85040012e7cab28cd863e30
3
- size 1523613
 
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:3622a90a5996034e3bfdde33cd39f429f8a97ed0a3c1226c9f94eda154d0a968
3
- size 3157631
 
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:9f6abc40a22cc4cdd3b5a926566c901981e357be58324284b656872abf5964c3
3
- size 1671611
 
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:5df7644187513e706f6231d3a893a87db1931946c016eaa36c328d3e863af385
3
- size 25902
 
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:7f926247ac9815f541673a37233915d079193d1ab306b3a9d4ea21d6d553e6a4
3
- size 283907
 
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:09f86ecd97a2a16a79a8ccbc3acc8d8fa435e53e34da6d9fe144083446d2c644
3
- size 144442
 
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