salma-remyx commited on
Commit
1b75348
·
1 Parent(s): 74427ac

adding whl, updating deps

Browse files
.gitattributes DELETED
@@ -1,37 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
36
- checkpoints/ filter=lfs diff=lfs merge=lfs -text
37
- checkpoints/depth_pro.pt filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Dockerfile DELETED
@@ -1,61 +0,0 @@
1
- FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
2
-
3
- ARG DEBIAN_FRONTEND=noninteractive
4
- ENV CUDA_HOME /usr/local/cuda-11.8/
5
-
6
- WORKDIR /app
7
-
8
- ENV PATH="/usr/local/cuda-11.8/bin:${PATH}"
9
- ENV LD_LIBRARY_PATH="/usr/local/cuda-11.8/lib64:${LD_LIBRARY_PATH}"
10
-
11
- RUN apt-get update && apt-get install -y software-properties-common wget && \
12
- add-apt-repository ppa:deadsnakes/ppa && \
13
- apt-get update && \
14
- apt-get install -y build-essential git wget curl && \
15
- apt-get install -y python3.10 python3.10-dev python3.10-distutils python3-venv && \
16
- update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
17
- update-alternatives --set python3 /usr/bin/python3.10 && \
18
- apt-get install -y zlib1g-dev libexpat1-dev
19
-
20
- RUN wget https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.sh && \
21
- chmod +x cmake-3.26.4-linux-x86_64.sh && \
22
- ./cmake-3.26.4-linux-x86_64.sh --skip-license --prefix=/usr/local && \
23
- rm cmake-3.26.4-linux-x86_64.sh
24
-
25
- RUN wget https://bootstrap.pypa.io/get-pip.py && \
26
- python3 get-pip.py && \
27
- rm get-pip.py
28
-
29
- RUN python3 -m pip install --upgrade pip && python3 -m pip install setuptools==65.0.1 wheel spacy==3.7.5
30
- RUN python3 -m spacy download en_core_web_sm
31
-
32
- RUN python3 -m pip install numpy==1.21.0
33
- RUN python3 -m pip install scikit-learn==1.0.2 --prefer-binary
34
-
35
- RUN apt-get install --no-install-recommends wget ffmpeg=7:* \
36
- libsm6=2:* libxext6=2:* git=1:* vim=2:* -y \
37
- && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
38
-
39
- RUN wget https://github.com/mikefarah/yq/releases/download/v4.30.8/yq_linux_amd64 -O /usr/bin/yq \
40
- && chmod +x /usr/bin/yq
41
-
42
- RUN pip install git+https://github.com/apple/ml-depth-pro.git
43
- RUN pip install 'git+https://github.com/facebookresearch/sam2.git'
44
- RUN pip install git+https://github.com/openai/CLIP.git
45
-
46
- RUN pip install --upgrade torch==2.4.0+cu118 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
47
-
48
- COPY . /app
49
- RUN pip install -r requirements.txt
50
- RUN pip uninstall -y flash_attn
51
- RUN pip install git+https://github.com/Dao-AILab/[email protected]
52
-
53
- RUN pip uninstall -y onnxruntime onnxruntime-gpu
54
- RUN pip install onnxruntime-gpu==1.18.1
55
-
56
- # Expose the port Gradio will run on
57
- EXPOSE 7860
58
-
59
- # Run the Gradio app
60
- CMD ["python3", "app.py"]
61
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extra_deps/flash_attn-2.7.0.post2-cp310-cp310-linux_x86_64.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb4eb73682931a7c591a97ff12926b392ebea4c67e8d9846537925fbfcddaecf
3
+ size 183278540
requirements.txt CHANGED
@@ -18,6 +18,7 @@ onnxsim==0.4.35
18
  scipy==1.12.0
19
  litellm==1.25.2
20
  pycocotools==2.0.6
 
21
  pandas
22
  html5lib
23
  datasets
@@ -25,7 +26,4 @@ datasets
25
  git+https://github.com/apple/ml-depth-pro.git
26
  git+https://github.com/facebookresearch/sam2.git
27
  git+https://github.com/openai/CLIP.git
28
-
29
- git+https://github.com/Dao-AILab/[email protected]
30
-
31
- onnxruntime-gpu
 
18
  scipy==1.12.0
19
  litellm==1.25.2
20
  pycocotools==2.0.6
21
+ onnxruntime-gpu
22
  pandas
23
  html5lib
24
  datasets
 
26
  git+https://github.com/apple/ml-depth-pro.git
27
  git+https://github.com/facebookresearch/sam2.git
28
  git+https://github.com/openai/CLIP.git
29
+ ./extra_deps/flash_attn-2.7.0.post2-cp310-cp310-linux_x86_64.whl