-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 806 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
FROM python:3.10.15-slim
ENV PYTHONUNBUFFERED=1
ENV TOKENIZERS_PARALLELISM=false
# models directory contains 4 Flux models:
# flux1-dev.safetensors
# clip_l.safetensors
# t5xxl_enconly.safetensors
# ae.safetensors
COPY models /models
# sd-scripts: https://github.com/kohya-ss/sd-scripts/tree/e425996a5953f0479384e70b6490e751c2d00b1f
COPY sd-scripts /sd-scripts
WORKDIR /sd-scripts
RUN pip install -r requirements.txt
WORKDIR /
RUN pip install opencv-python-headless==4.10.0.84
RUN pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu124
RUN pip install wandb
COPY run-training.sh /run-training.sh
COPY dataset-config.toml /dataset-config.toml
COPY sample_prompts.txt /sample_prompts.txt
COPY Dockerfile .
COPY README.md .
CMD ["bash", "run-training.sh"]