Spaces:
Runtime error
Runtime error
File size: 970 Bytes
f2d4a33 169ddc5 f2d4a33 169ddc5 f2d4a33 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # FloorPlanTo3D-API — Mask R-CNN (TF 1.15 / Keras 2.0.8 / Python 3.6) wall+door+window detector.
# Built for a Hugging Face Docker Space (listens on 7860).
FROM python:3.6-slim
# system libs OpenCV needs at runtime (bullseye repos are live)
RUN apt-get update && apt-get install -y --no-install-recommends libglib2.0-0 libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Old TF1 stack is picky about build tooling and protobuf — pin everything.
RUN pip install --no-cache-dir --upgrade "pip==21.3.1" "setuptools<58" wheel
RUN pip install --no-cache-dir \
numpy==1.19.5 \
protobuf==3.19.6 \
h5py==2.10.0 \
tensorflow==1.15.3 \
keras==2.0.8 \
scipy==1.5.4 \
scikit-image==0.17.2 \
"opencv-python==4.5.2.52" \
Pillow==8.2.0 \
imgaug==0.4.0 \
Cython==0.29.23 \
matplotlib==3.3.4 \
Flask==2.0.1 Flask-Cors==5.0.0 Werkzeug==2.0.1
COPY . /app
ENV MPLBACKEND=Agg
EXPOSE 7860
CMD ["python", "application.py"]
|