mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
instead linking modelfile use custom models.yaml
This commit is contained in:
parent
38bdb440d0
commit
bc7ece771d
@ -45,21 +45,16 @@ ARG invokeai_branch=main
|
|||||||
ARG project_name=invokeai
|
ARG project_name=invokeai
|
||||||
ARG conda_env_file=environment-lin-cuda.yml
|
ARG conda_env_file=environment-lin-cuda.yml
|
||||||
RUN git clone -b ${invokeai_branch} https://github.com/${invokeai_git}.git "/${project_name}" \
|
RUN git clone -b ${invokeai_branch} https://github.com/${invokeai_git}.git "/${project_name}" \
|
||||||
&& cp \
|
|
||||||
"/${project_name}/configs/models.yaml.example" \
|
|
||||||
"/${project_name}/configs/models.yaml" \
|
|
||||||
&& ln -sf \
|
&& ln -sf \
|
||||||
"/${project_name}/environments-and-requirements/${conda_env_file}" \
|
"/${project_name}/environments-and-requirements/${conda_env_file}" \
|
||||||
"/${project_name}/environment.yml" \
|
"/${project_name}/environment.yml" \
|
||||||
&& ln -sf \
|
|
||||||
/data/models/v1-5-pruned-emaonly.ckpt \
|
|
||||||
"/${project_name}/models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt" \
|
|
||||||
&& ln -sf \
|
&& ln -sf \
|
||||||
/data/outputs/ \
|
/data/outputs/ \
|
||||||
"/${project_name}/outputs"
|
"/${project_name}/outputs"
|
||||||
|
|
||||||
# set workdir
|
# set workdir and copy models.yaml
|
||||||
WORKDIR "/${project_name}"
|
WORKDIR "/${project_name}"
|
||||||
|
COPY docker-build/models.yaml configs/models.yaml
|
||||||
|
|
||||||
# install conda env and preload models
|
# install conda env and preload models
|
||||||
ARG conda_prefix=/opt/conda
|
ARG conda_prefix=/opt/conda
|
||||||
|
8
docker-build/models.yaml
Normal file
8
docker-build/models.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
stable-diffusion-1.5:
|
||||||
|
description: The newest Stable Diffusion version 1.5 weight file (4.27 GB)
|
||||||
|
weights: /data/models/v1-5-pruned-emaonly.ckpt
|
||||||
|
config: ./configs/stable-diffusion/v1-inference.yaml
|
||||||
|
width: 512
|
||||||
|
height: 512
|
||||||
|
vae: ./models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt
|
||||||
|
default: true
|
Loading…
x
Reference in New Issue
Block a user