-
Notifications
You must be signed in to change notification settings - Fork 842
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 814 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 814 Bytes
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
#---
# name: sapiens
# group: vit
# depends: [jetson-utils, pytorch, torchvision, torchaudio, libcom, opencv]
# buildkit_device: nvidia.com/gpu=all
# requires: '>=36'
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt/sapiens
RUN git clone --recursive --depth=1 https://github.com/facebookresearch/sapiens.git .
RUN uv pip install install chumpy scipy munkres tqdm cython fsspec yapf==0.40.1 matplotlib packaging omegaconf ipdb ftfy regex
RUN uv pip install json_tricks terminaltables modelindex prettytable albumentations libcom
COPY install.sh /opt/sapiens/install.sh
RUN chmod +x /opt/sapiens/install.sh && /opt/sapiens/install.sh
RUN uv pip install --force-reinstall opencv-python
COPY demo.py models.py /opt/sapiens/demo/
CMD ["/bin/bash", "-c", "export SAPIENS_ROOT=/opt/sapiens && exec /bin/bash"]