Files
environment/sample/README.md
T
warren 205566a0f0 feat: portable sample package (100 videos w/ deep scan); clean-install wipes ALL Qdrant collections + legacy storage dirs
- sample/: build_package.sh (pack from pre-clean backup), install_sample.sh (上架), uninstall_sample.sh (下架), README
- clean-install.sh: delete every collection via /collections API + rm legacy qdrant storage dirs (~/qdrant/storage/collections etc.)
2026-11-08 22:11:50 +08:00

45 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Momentry Sample Package — 100 影片(deep scan 已完成)
可攜式 sample 資料包:100 支 demo 影片(001.mp4 ~ 098.mp4 及變體)+ 已完成的
deep scan 資料(probe / face / asr / asrx / ocr / cut / scenes / face_cluster /
face_trace / scene_vlm / tkg)+ 對應的 PostgreSQL 資料。
## 內容
| 項目 | 說明 |
|---|---|
| `videos/` | 100 支 mp4 影片(約 1.5 GB) |
| `output/` | 1172 個 deep scan 輸出 JSON(116 MB) |
| `db/sample_data.sql` | 過濾後的 DB 資料(COPY 格式,session_replication_role=replica 保護 FK) |
| `manifest.tsv` / `manifest.json` | uuid ↔ 檔名對照與清單 |
| `uuids.txt` | 100 個 file_uuid |
| install_sample.sh | **上架** |
| uninstall_sample.sh | **下架** |
## 上架(在任何 momentry 機器上)
```bash
bash install_sample.sh # 上架
# 可用環境變數覆蓋:
# MOMENTRY_DIR=~/momentry MOMENTRY_DB=momentry MOMENTRY_PGUSER=accusys
```
下架(移除影片 + output + DB 資料):
```bash
bash uninstall_sample.sh
```
## 注意
- 上架前系統需已完成安裝(install.sh),DB schema 為 canonical 71 表版。
- 匯入使用 `session_replication_role = replica`,匯入後會自動校正 id sequences。
- 臉部偵測(face_detections)為空:這批 sample 影片原本就無臉部偵測資料,
臉部/身分面板會是空的;影片卡片、場景、逐字稿 chunks、TKG 皆為完整資料。
- Qdrant 不需預先存在任何 collection;系統無臉部向量資料。
## 產生方式(參考)
由 203 機器的備份(momentry_backup_before_clean_20261108_205623)打包:
`build_package.sh`(保留在 momentry_installer/sample/)。