depthsnap-models / README.md
androidli's picture
Upload README.md with huggingface_hub
dacf585 verified
|
Raw History Blame Contribute Delete
1.19 kB
---
license: other
tags:
- depth-estimation
- encrypted
- onnx
---
# depthsnap-models
Web 端单目深度模型的**加密分发**存储。
## 内容
| 文件 | 说明 |
|---|---|
| `lite_640x352_enc.bin` | LiteDepth 640×352 高质量档(加密) |
| `lite_384x224_enc.bin` | LiteDepth 384×224 快速档(加密) |
两个文件都**不是**可直接加载的 ONNX 模型,而是 **AES-256-GCM 密文**。
## 文件格式
```
[12B IV] [ciphertext || 16B auth tag]
```
- 前 12 字节是 GCM 的随机 IV(每个文件独立)
- 去掉 IV 之后的部分,正好是 WebCrypto `AES-GCM` 解密接口接受的形式
- 密钥**不在此仓库**,由部署站的 `/api/mkey` 在 Origin 白名单校验后下发
## 用途
供 depthsnap 网页端在浏览器内做 2D→3D 转换时下载。文件本身无法直接使用 ——
这层加密的目的是让「拿到 URL 直接下载」只能得到无意义的字节,而不是让模型真正保密
(浏览器最终必须拿到明文权重)。
## 宿主
同一份密文也发布在 Cloudflare R2(`depth-models` bucket),两个通道互为备份,
用于应对单一 CDN 在某些地区不可达的情况。