forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (25 loc) · 898 Bytes
/
Dockerfile
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
#---
# name: efficientvit
# group: vit
# depends: [pytorch, torchvision, opencv, transformers, onnx, sam, jupyterlab]
# requires: '>=34.1.0'
# docs: docs.md
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt
# Clone the repository:
RUN git clone --branch dev-python-3.8 https://github.com/tokk-nv/efficientvit.git && \
cd efficientvit && \
sed 's|^torch.*||g' -i requirements.txt && \
sed 's|^opencv-python||g' -i requirements.txt && \
sed 's|^transformers||g' -i requirements.txt && \
sed 's|^onnx$||g' -i requirements.txt && \
sed 's|^onnxruntime$||g' -i requirements.txt && \
sed 's|^git+https://github.com/facebookresearch/segment-anything.git||g' -i requirements.txt && \
cat requirements.txt && \
pip3 install -r requirements.txt
# RUN cd /opt/efficientvit && \
# pip3 install .
COPY benchmark.py /opt/efficientvit
WORKDIR /opt/efficientvit