praeclarumjj3 commited on
Commit
d2d4749
·
1 Parent(s): 522f8da

Compile Worked, fix path data

Browse files
Files changed (1) hide show
  1. 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
- # COPY ./oneformer/data/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
 
 
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