fix: add mediapipe to upscale-enhance bundle for face enhancement

The enhance-faces tool requires MediaPipe for face detection, but the
upscale-enhance feature bundle did not include mediapipe in its pip
packages. Users who installed only the upscale-enhance bundle got
"Face detection requires MediaPipe" errors. Added mediapipe to both
amd64 and arm64 package lists, matching the pattern used by the
face-detection and photo-restoration bundles.

Also added feature-manifest.test.ts with 25 tests validating bundle
dependency completeness to prevent similar missing-dependency bugs.

Closes #129
This commit is contained in:
SnapOtter
2026-05-07 22:21:45 +08:00
parent ff8a280b45
commit 6fc767523c
2 changed files with 215 additions and 2 deletions
+3 -2
View File
@@ -139,9 +139,10 @@
"amd64": [
"torch==2.7.0+cu126 torchvision==0.22.0+cu126 --index-url https://download.pytorch.org/whl/cu126",
"lpips",
"realesrgan==0.3.0"
"realesrgan==0.3.0",
"mediapipe==0.10.21"
],
"arm64": ["lpips", "realesrgan==0.3.0"]
"arm64": ["lpips", "realesrgan==0.3.0", "mediapipe==0.10.18"]
},
"pipFlags": {
"codeformer-pip==0.0.4": "--no-deps"