Spaces:
Running
on
Zero
Running
on
Zero
add: algos
Browse files- Dockerfile +10 -21
- config/config.yaml +8 -8
- docker-compose.yml +41 -0
Dockerfile
CHANGED
|
@@ -1,27 +1,16 @@
|
|
| 1 |
-
# Use an official conda-based Python image as a parent image
|
| 2 |
FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
|
| 3 |
LABEL maintainer vincentqyw
|
| 4 |
-
ARG PYTHON_VERSION=3.10.10
|
| 5 |
|
| 6 |
-
# Set the working directory to /code
|
| 7 |
WORKDIR /code
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
RUN apt-get update && apt-get install -y
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
RUN git clone --recursive https://github.com/Vincentqyw/image-matching-webui.git /code
|
| 15 |
-
|
| 16 |
-
RUN conda create -n imw python=${PYTHON_VERSION}
|
| 17 |
-
RUN echo "source activate imw" > ~/.bashrc
|
| 18 |
-
ENV PATH /opt/conda/envs/imw/bin:$PATH
|
| 19 |
-
|
| 20 |
-
# Make RUN commands use the new environment
|
| 21 |
-
SHELL ["conda", "run", "-n", "imw", "/bin/bash", "-c"]
|
| 22 |
-
RUN pip install --upgrade pip
|
| 23 |
-
RUN pip install -r requirements.txt
|
| 24 |
-
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
| 25 |
-
|
| 26 |
-
# Export port
|
| 27 |
-
EXPOSE 7860
|
|
|
|
|
|
|
| 1 |
FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
|
| 2 |
LABEL maintainer vincentqyw
|
|
|
|
| 3 |
|
|
|
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
+
# all together
|
| 7 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
+
git-lfs ffmpeg libsm6 libxext6 && \
|
| 9 |
+
git lfs install && \
|
| 10 |
+
git clone --recursive https://github.com/Vincentqyw/image-matching-webui.git . && \
|
| 11 |
+
pip install --no-cache-dir --upgrade pip && \
|
| 12 |
+
pip install --no-cache-dir -r requirements.txt && \
|
| 13 |
+
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
| 14 |
+
pip cache purge
|
| 15 |
|
| 16 |
+
EXPOSE 7860 8000 8001 8265
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config/config.yaml
CHANGED
|
@@ -47,13 +47,13 @@ matcher_zoo:
|
|
| 47 |
matcher: dad_roma
|
| 48 |
skip_ci: true
|
| 49 |
dense: true
|
| 50 |
-
enable:
|
| 51 |
info:
|
| 52 |
name: Dad(RoMa) #dispaly name
|
| 53 |
source: "ARXIV 2025"
|
| 54 |
github: https://github.com/example/example
|
| 55 |
paper: https://arxiv.org/abs/2503.07347
|
| 56 |
-
display:
|
| 57 |
efficiency: low # low, medium, high
|
| 58 |
minima(loftr):
|
| 59 |
matcher: minima_loftr
|
|
@@ -68,13 +68,13 @@ matcher_zoo:
|
|
| 68 |
matcher: minima_roma
|
| 69 |
skip_ci: true
|
| 70 |
dense: true
|
| 71 |
-
enable:
|
| 72 |
info:
|
| 73 |
name: MINIMA(RoMa) #dispaly name
|
| 74 |
source: "ARXIV 2024"
|
| 75 |
paper: https://arxiv.org/abs/2412.19412
|
| 76 |
github: https://github.com/LSXI7/MINIMA
|
| 77 |
-
display:
|
| 78 |
efficiency: low # low, medium, high
|
| 79 |
omniglue:
|
| 80 |
enable: true
|
|
@@ -88,7 +88,7 @@ matcher_zoo:
|
|
| 88 |
project: https://hwjiang1510.github.io/OmniGlue
|
| 89 |
display: true
|
| 90 |
Mast3R:
|
| 91 |
-
enable:
|
| 92 |
matcher: mast3r
|
| 93 |
dense: true
|
| 94 |
info:
|
|
@@ -123,7 +123,7 @@ matcher_zoo:
|
|
| 123 |
github: https://github.com/xuelunshen/gim
|
| 124 |
paper: https://arxiv.org/abs/2402.11095
|
| 125 |
project: https://xuelunshen.com/gim
|
| 126 |
-
display:
|
| 127 |
efficiency: low # low, medium, high
|
| 128 |
RoMa:
|
| 129 |
matcher: roma
|
|
@@ -141,14 +141,14 @@ matcher_zoo:
|
|
| 141 |
matcher: dkm
|
| 142 |
skip_ci: true
|
| 143 |
dense: true
|
| 144 |
-
enable:
|
| 145 |
info:
|
| 146 |
name: DKM #dispaly name
|
| 147 |
source: "CVPR 2023"
|
| 148 |
github: https://github.com/Parskatt/DKM
|
| 149 |
paper: https://arxiv.org/abs/2202.00667
|
| 150 |
project: https://parskatt.github.io/DKM
|
| 151 |
-
display:
|
| 152 |
efficiency: low # low, medium, high
|
| 153 |
loftr:
|
| 154 |
matcher: loftr
|
|
|
|
| 47 |
matcher: dad_roma
|
| 48 |
skip_ci: true
|
| 49 |
dense: true
|
| 50 |
+
enable: true
|
| 51 |
info:
|
| 52 |
name: Dad(RoMa) #dispaly name
|
| 53 |
source: "ARXIV 2025"
|
| 54 |
github: https://github.com/example/example
|
| 55 |
paper: https://arxiv.org/abs/2503.07347
|
| 56 |
+
display: true
|
| 57 |
efficiency: low # low, medium, high
|
| 58 |
minima(loftr):
|
| 59 |
matcher: minima_loftr
|
|
|
|
| 68 |
matcher: minima_roma
|
| 69 |
skip_ci: true
|
| 70 |
dense: true
|
| 71 |
+
enable: true
|
| 72 |
info:
|
| 73 |
name: MINIMA(RoMa) #dispaly name
|
| 74 |
source: "ARXIV 2024"
|
| 75 |
paper: https://arxiv.org/abs/2412.19412
|
| 76 |
github: https://github.com/LSXI7/MINIMA
|
| 77 |
+
display: true
|
| 78 |
efficiency: low # low, medium, high
|
| 79 |
omniglue:
|
| 80 |
enable: true
|
|
|
|
| 88 |
project: https://hwjiang1510.github.io/OmniGlue
|
| 89 |
display: true
|
| 90 |
Mast3R:
|
| 91 |
+
enable: true
|
| 92 |
matcher: mast3r
|
| 93 |
dense: true
|
| 94 |
info:
|
|
|
|
| 123 |
github: https://github.com/xuelunshen/gim
|
| 124 |
paper: https://arxiv.org/abs/2402.11095
|
| 125 |
project: https://xuelunshen.com/gim
|
| 126 |
+
display: true
|
| 127 |
efficiency: low # low, medium, high
|
| 128 |
RoMa:
|
| 129 |
matcher: roma
|
|
|
|
| 141 |
matcher: dkm
|
| 142 |
skip_ci: true
|
| 143 |
dense: true
|
| 144 |
+
enable: true
|
| 145 |
info:
|
| 146 |
name: DKM #dispaly name
|
| 147 |
source: "CVPR 2023"
|
| 148 |
github: https://github.com/Parskatt/DKM
|
| 149 |
paper: https://arxiv.org/abs/2202.00667
|
| 150 |
project: https://parskatt.github.io/DKM
|
| 151 |
+
display: true
|
| 152 |
efficiency: low # low, medium, high
|
| 153 |
loftr:
|
| 154 |
matcher: loftr
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# docker-compose.yml
|
| 2 |
+
version: '3.8'
|
| 3 |
+
|
| 4 |
+
services:
|
| 5 |
+
# API
|
| 6 |
+
api:
|
| 7 |
+
build: .
|
| 8 |
+
ports:
|
| 9 |
+
- "8000:8000"
|
| 10 |
+
- "8001:8001"
|
| 11 |
+
- "8265:8265"
|
| 12 |
+
command: python -m imcui.api.server --config imcui/api/config/api.yaml
|
| 13 |
+
volumes:
|
| 14 |
+
- ./models:/code/models # Optinal: models
|
| 15 |
+
environment:
|
| 16 |
+
- PYTHONUNBUFFERED=1
|
| 17 |
+
- CUDA_VISIBLE_DEVICES=0
|
| 18 |
+
|
| 19 |
+
# Web UI
|
| 20 |
+
webui:
|
| 21 |
+
build: .
|
| 22 |
+
ports:
|
| 23 |
+
- "7860:7860"
|
| 24 |
+
command: python app.py --server_port=7860 --server_name=0.0.0.0
|
| 25 |
+
volumes:
|
| 26 |
+
- ./uploads:/code/uploads # Optinal: some uploads
|
| 27 |
+
environment:
|
| 28 |
+
- PYTHONUNBUFFERED=1
|
| 29 |
+
- CUDA_VISIBLE_DEVICES=0
|
| 30 |
+
|
| 31 |
+
# enter debug mode
|
| 32 |
+
debug:
|
| 33 |
+
build: .
|
| 34 |
+
ports:
|
| 35 |
+
- "7860:7860"
|
| 36 |
+
command: sleep infinity
|
| 37 |
+
volumes:
|
| 38 |
+
- ./uploads:/code/uploads # Optinal: some uploads
|
| 39 |
+
environment:
|
| 40 |
+
- PYTHONUNBUFFERED=1
|
| 41 |
+
- CUDA_VISIBLE_DEVICES=0
|