|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM pytorch/pytorch:2.7.0-cuda12.8-cudnn9-runtime |
|
|
|
|
|
|
|
|
ENV NVIDIA_VISIBLE_DEVICES=all \ |
|
|
NVIDIA_DRIVER_CAPABILITIES=compute,utility \ |
|
|
DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
git \ |
|
|
libgl1-mesa-glx \ |
|
|
libglib2.0-0 \ |
|
|
--no-install-recommends && \ |
|
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
WORKDIR /opt/nuclio |
|
|
|
|
|
|
|
|
|
|
|
RUN pip install --extra-index-url https://miropsota.github.io/torch_packages_builder \ |
|
|
mmcv==2.2.0+pt2.7.0cu128 mmengine mmsegmentation>=1.0.0 torch==2.7.0 |
|
|
|
|
|
|
|
|
RUN pip install --no-cache-dir git+https://github.com/facebookresearch/dinov2.git --no-deps |
|
|
|
|
|
RUN pip install --no-cache-dir \ |
|
|
fvcore==0.1.5.post20221221 \ |
|
|
iopath==0.1.10 \ |
|
|
omegaconf==2.3.0 \ |
|
|
submitit==1.5.1 \ |
|
|
torchmetrics==1.4.0 \ |
|
|
xformers==0.0.30 ftfy regex scikit-learn matplotlib pycocotools |
|
|
|
|
|
|
|
|
ENV TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1 |
|
|
RUN sed -i "s/MMCV_MAX = '2.2.0'/MMCV_MAX = '2.3.0'/" /opt/conda/lib/python3.11/site-packages/mmseg/__init__.py |
|
|
|
|
|
|
|
|
COPY . . |
|
|
|
|
|
|
|
|
ADD https://storage.googleapis.com/public_model_repo/dinov2_vitb14_coralsegv4_ms_config_segformer/dinov2_vitb14_coralsegv4_ms_config_segformer.py ./best_segformer_config.py |
|
|
ADD https://storage.googleapis.com/public_model_repo/dinov2_vitb14_coralsegv4_ms_config_segformer/best_mIoU_epoch_140.pth ./best_segformer.pth |
|
|
ADD https://storage.googleapis.com/public_model_repo/vit_b_coralscop.pth ./ |
|
|
|