Commit
·
a7d3bf5
1
Parent(s):
991564c
fix: add multiple fallback options for insightface installation
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -62,10 +62,13 @@ RUN pip install --no-cache-dir opencv-python-headless
|
|
| 62 |
# Install ONNX Runtime
|
| 63 |
RUN pip install --no-cache-dir onnxruntime==1.17.3
|
| 64 |
|
| 65 |
-
# Install insightface - try
|
| 66 |
RUN pip install --no-cache-dir insightface==0.7.3 || \
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
# Install utility dependencies
|
| 71 |
RUN pip install --no-cache-dir \
|
|
|
|
| 62 |
# Install ONNX Runtime
|
| 63 |
RUN pip install --no-cache-dir onnxruntime==1.17.3
|
| 64 |
|
| 65 |
+
# Install insightface - try multiple versions/approaches
|
| 66 |
RUN pip install --no-cache-dir insightface==0.7.3 || \
|
| 67 |
+
pip install --no-cache-dir insightface>=0.7.0,<0.8.0 || \
|
| 68 |
+
pip install --no-cache-dir insightface || \
|
| 69 |
+
(echo "Installing insightface from git..." && \
|
| 70 |
+
pip install --no-cache-dir git+https://github.com/deepinsight/insightface.git@v0.7.3 || \
|
| 71 |
+
pip install --no-cache-dir git+https://github.com/deepinsight/insightface.git)
|
| 72 |
|
| 73 |
# Install utility dependencies
|
| 74 |
RUN pip install --no-cache-dir \
|