-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 967 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM pytorch/pytorch:2.2.0-cuda11.8-cudnn8-runtime
## DO NOT EDIT these 3 lines
RUN mkdir /challenge
COPY ./ /challenge
WORKDIR /challenge
## Install dependencies
RUN apt-get update && apt-get install -y git
RUN apt-get update && \
apt-get install -y git software-properties-common curl
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get install -y git-lfs
RUN git lfs install
RUN mkdir -p model
RUN mkdir -p pretrained_model
RUN mkdir -p logs
ENV HUGGINGFACE_HUB_CACHE=/challenge/cache
RUN git clone https://huggingface.co/fmenegui/cinc_of1
RUN mv cinc_of1/* model/
RUN git clone https://huggingface.co/fmenegui/cinc_of_pretrained
RUN mv cinc_of_pretrained/* pretrained_model/
## requirements.txt file.
RUN pip install --upgrade pip
RUN pip install -r media/requirements.txt
RUN pip install -e media
RUN python -c "import timm; model = timm.create_model('convnext_tiny_in22k', pretrained=True)"