Spaces:
Runtime error
Runtime error
Commit
·
d2d4749
1
Parent(s):
522f8da
Compile Worked, fix path data
Browse files- Dockerfile +16 -16
Dockerfile
CHANGED
@@ -34,29 +34,29 @@ COPY . .
|
|
34 |
RUN ls
|
35 |
RUN pwd
|
36 |
RUN wget https://github.com/SHI-Labs/OneFormer/blob/main/oneformer/data/bpe_simple_vocab_16e6.txt.gz
|
37 |
-
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
42 |
|
43 |
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
-
|
59 |
-
|
60 |
|
61 |
USER user
|
62 |
|
|
|
34 |
RUN ls
|
35 |
RUN pwd
|
36 |
RUN wget https://github.com/SHI-Labs/OneFormer/blob/main/oneformer/data/bpe_simple_vocab_16e6.txt.gz
|
37 |
+
COPY bpe_simple_vocab_16e6.txt.gz $WORKDIR/oneformer/data/bpe_simple_vocab_16e6.txt.gz
|
38 |
|
39 |
+
RUN pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
|
40 |
|
41 |
+
ARG TORCH_CUDA_ARCH_LIST=7.5+PTX
|
42 |
|
43 |
|
44 |
+
RUN pip install ninja
|
45 |
|
46 |
+
USER root
|
47 |
+
RUN chown -R user:user /usr
|
48 |
+
RUN chmod -R 777 /usr
|
49 |
+
RUN chown -R user:user $HOME
|
50 |
+
RUN chmod -R 777 $HOME
|
51 |
+
RUN chown -R user:user $WORKDIR
|
52 |
+
RUN chmod -R 777 $WORKDIR
|
53 |
|
54 |
+
USER user
|
55 |
+
RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd ops/ && FORCE_CUDA=1 python setup.py build --build-base=$WORKDIR/ install --user && cd ..
|
56 |
+
RUN sh deform_setup.sh
|
57 |
|
58 |
+
USER user
|
59 |
+
RUN sh deform_setup.sh
|
60 |
|
61 |
USER user
|
62 |
|