Commit ·
1b2c739
1
Parent(s): 3f7a009
Fix: install requirements line-by-line to avoid single-package abort
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -41,9 +41,15 @@ RUN micromamba run -n sam3d python -m pip install \
|
|
| 41 |
"git+https://github.com/microsoft/MoGe.git@a8c37341bc0325ca99b9d57981cc3bb2bd3e255b" \
|
| 42 |
|| true
|
| 43 |
|
| 44 |
-
# MV-SAM3D full requirements
|
|
|
|
| 45 |
COPY MV-SAM3D/my_requirements.txt /tmp/my_requirements.txt
|
| 46 |
-
RUN micromamba run -n sam3d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
# PyTorch3D + gsplat from prebuilt wheels
|
| 49 |
COPY MV-SAM3D/wheels /tmp/wheels
|
|
|
|
| 41 |
"git+https://github.com/microsoft/MoGe.git@a8c37341bc0325ca99b9d57981cc3bb2bd3e255b" \
|
| 42 |
|| true
|
| 43 |
|
| 44 |
+
# MV-SAM3D full requirements – install line-by-line so one bad package
|
| 45 |
+
# (e.g. point-cloud-ut9.5) doesn't abort the entire batch.
|
| 46 |
COPY MV-SAM3D/my_requirements.txt /tmp/my_requirements.txt
|
| 47 |
+
RUN micromamba run -n sam3d bash -c '\
|
| 48 |
+
while IFS= read -r pkg || [ -n "$pkg" ]; do \
|
| 49 |
+
pkg=$(echo "$pkg" | tr -d "\r" | xargs); \
|
| 50 |
+
[ -z "$pkg" ] && continue; \
|
| 51 |
+
pip install "$pkg" || echo "⚠ SKIPPED: $pkg"; \
|
| 52 |
+
done < /tmp/my_requirements.txt'
|
| 53 |
|
| 54 |
# PyTorch3D + gsplat from prebuilt wheels
|
| 55 |
COPY MV-SAM3D/wheels /tmp/wheels
|