适配内网仓库模型分片
This commit is contained in:
@@ -37,15 +37,24 @@ build.sh 无 Gradle 手动构建脚本
|
||||
- `platforms/android-28/android.jar`
|
||||
- `build-tools/34.0.0`
|
||||
- JDK 8 或兼容 `javac --release 8` 的 JDK
|
||||
- Git LFS(仓库中的 SeetaFace6 `.csta` 模型通过 LFS 管理)
|
||||
- Android SDK platform-tools,用于 `adb install`
|
||||
|
||||
内网仓库限制单文件最大 50MB,因此约 98MB 的
|
||||
`face_recognizer.csta` 保存为 `model-parts/` 下的四个分片。
|
||||
`build.sh` 会在编译前自动校验 SHA-256 并恢复完整模型,无需手动合并。
|
||||
|
||||
## 构建 APK
|
||||
|
||||
```bash
|
||||
bash build.sh
|
||||
```
|
||||
|
||||
如果只需要恢复或校验人脸模型,可单独执行:
|
||||
|
||||
```bash
|
||||
bash scripts/restore-face-models.sh
|
||||
```
|
||||
|
||||
构建产物:
|
||||
|
||||
```text
|
||||
|
||||
Reference in New Issue
Block a user